candat 0.1.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- candat-0.1.1/LICENSE +21 -0
- candat-0.1.1/PKG-INFO +119 -0
- candat-0.1.1/README.md +92 -0
- candat-0.1.1/pyproject.toml +51 -0
- candat-0.1.1/src/candat/__init__.py +5 -0
- candat-0.1.1/src/candat/app.py +501 -0
- candat-0.1.1/src/candat/buffers.py +60 -0
- candat-0.1.1/src/candat/chords.py +85 -0
- candat-0.1.1/src/candat/commands.py +54 -0
- candat-0.1.1/src/candat/dialogs.py +160 -0
- candat-0.1.1/src/candat/editor.py +419 -0
- candat-0.1.1/src/candat/help.py +120 -0
- candat-0.1.1/src/candat/isearch.py +174 -0
- candat-0.1.1/src/candat/killring.py +42 -0
- candat-0.1.1/src/candat/preview.py +24 -0
- candat-0.1.1/src/candat/rlang.py +44 -0
- candat-0.1.1/src/candat/terminal.py +350 -0
- candat-0.1.1/src/candat/theme.py +28 -0
candat-0.1.1/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Petr Novak
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
candat-0.1.1/PKG-INFO
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: candat
|
|
3
|
+
Version: 0.1.1
|
|
4
|
+
Summary: A terminal IDE with emacs keybindings, built on Textual — editor, file tree, markdown preview, and a real PTY terminal
|
|
5
|
+
Keywords: editor,ide,terminal,tui,emacs,textual,markdown
|
|
6
|
+
Author: Petr Novak
|
|
7
|
+
Author-email: Petr Novak <petr@umbr.cas.cz>
|
|
8
|
+
License-Expression: MIT
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Classifier: Development Status :: 4 - Beta
|
|
11
|
+
Classifier: Environment :: Console
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
18
|
+
Classifier: Topic :: Text Editors :: Integrated Development Environments (IDE)
|
|
19
|
+
Requires-Dist: pyte>=0.8.2
|
|
20
|
+
Requires-Dist: textual[syntax]>=8.2.8
|
|
21
|
+
Requires-Dist: tree-sitter-language-pack>=1.12.2
|
|
22
|
+
Requires-Python: >=3.10
|
|
23
|
+
Project-URL: Homepage, https://github.com/kavonrtep/candat
|
|
24
|
+
Project-URL: Issues, https://github.com/kavonrtep/candat/issues
|
|
25
|
+
Project-URL: Repository, https://github.com/kavonrtep/candat
|
|
26
|
+
Description-Content-Type: text/markdown
|
|
27
|
+
|
|
28
|
+
# candat
|
|
29
|
+
|
|
30
|
+
A terminal IDE with emacs keybindings, built on [Textual](https://textual.textualize.io/).
|
|
31
|
+
|
|
32
|
+
## Install
|
|
33
|
+
|
|
34
|
+
From GitHub, as a standalone tool (recommended — gives you a global `candat`
|
|
35
|
+
command in its own isolated environment):
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
uv tool install git+https://github.com/kavonrtep/candat
|
|
39
|
+
# or, with pipx (needs Python >= 3.10):
|
|
40
|
+
pipx install git+https://github.com/kavonrtep/candat
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Or with plain pip into the environment of your choice:
|
|
44
|
+
|
|
45
|
+
```sh
|
|
46
|
+
pip install git+https://github.com/kavonrtep/candat
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
To try it once without installing anything permanently:
|
|
50
|
+
|
|
51
|
+
```sh
|
|
52
|
+
uvx --from git+https://github.com/kavonrtep/candat candat
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Requires Python >= 3.10 and Linux.
|
|
56
|
+
|
|
57
|
+
## Run
|
|
58
|
+
|
|
59
|
+
```sh
|
|
60
|
+
candat [FILE|DIR ...]
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Passing a directory sets the file-tree root; files are opened in buffers.
|
|
64
|
+
|
|
65
|
+
## Keys (so far)
|
|
66
|
+
|
|
67
|
+
| Key | Action |
|
|
68
|
+
| --- | --- |
|
|
69
|
+
| `C-x C-f` | find file (opens new file if it doesn't exist) |
|
|
70
|
+
| `C-x C-s` | save buffer |
|
|
71
|
+
| `C-x C-w` | write buffer to another file |
|
|
72
|
+
| `C-x k` | kill buffer |
|
|
73
|
+
| `C-x b` | buffer list (Enter switches; next buffer preselected) |
|
|
74
|
+
| `C-x o` | switch focus between tree and editor |
|
|
75
|
+
| `C-x C-c` | quit (confirms if unsaved buffers) |
|
|
76
|
+
| `C-x C-x` | exchange point and mark |
|
|
77
|
+
| `C-x h` | mark whole buffer |
|
|
78
|
+
| `C-x u`, `C-/`, `C-z` | undo |
|
|
79
|
+
| `C-f` `C-b` `C-n` `C-p` `C-a` `C-e` | char/line movement |
|
|
80
|
+
| `M-f` `M-b` | word movement |
|
|
81
|
+
| `C-v` `M-v` | page down / up |
|
|
82
|
+
| `M-<` `M->` | beginning / end of buffer |
|
|
83
|
+
| `C-space` | set mark (movement extends region) |
|
|
84
|
+
| `C-k` | kill line (consecutive kills accumulate) |
|
|
85
|
+
| `C-w` / `M-w` | kill / copy region |
|
|
86
|
+
| `C-y` / `M-y` | yank / yank-pop |
|
|
87
|
+
| `M-d` / `M-backspace` | kill word forward / backward |
|
|
88
|
+
| `M-up` / `M-down` | move current line (or marked block) up / down |
|
|
89
|
+
| `C-s` / `C-r` | incremental search (smart case, wraps) |
|
|
90
|
+
| `C-x t` | toggle terminal panel (keys pass through raw; only `C-x` is reserved) |
|
|
91
|
+
| `Shift+PgUp/PgDn` | terminal scrollback (typing snaps back) |
|
|
92
|
+
| `C-c C-v` | cycle markdown preview: split / preview-only / off |
|
|
93
|
+
| `M-x`, `Ctrl+Shift+P` | command palette |
|
|
94
|
+
| `C-g` / `Esc` | cancel chord / prompt / search / mark |
|
|
95
|
+
|
|
96
|
+
`ESC` acts as the Meta prefix, so `ESC w` == `M-w`, `ESC x` == `M-x`, etc.
|
|
97
|
+
`Tab` completes paths in the find-file and write-file prompts.
|
|
98
|
+
|
|
99
|
+
The file tree opens files on selection. The default theme is `candat-light`
|
|
100
|
+
(high-contrast dark-on-white). The markdown preview is linked: it follows
|
|
101
|
+
the editor's scroll position.
|
|
102
|
+
|
|
103
|
+
## Development
|
|
104
|
+
|
|
105
|
+
```sh
|
|
106
|
+
uv run pytest
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
## Roadmap
|
|
110
|
+
|
|
111
|
+
1. ~~Skeleton: tree / tabs / status bar / C-x chords / open & save~~
|
|
112
|
+
2. ~~Emacs editing: kill ring, C-s/C-r isearch, mark & region, M-x palette~~
|
|
113
|
+
3. ~~Markdown mode: side-by-side live preview (debounced)~~
|
|
114
|
+
4. ~~Terminal panel (full PTY: forkpty + pyte)~~
|
|
115
|
+
5. ~~Polish: terminal scrollback, dirty-line rendering, path completion in
|
|
116
|
+
prompts, buffer list, scroll-synced preview, R/xml/html highlighting~~
|
|
117
|
+
|
|
118
|
+
Syntax highlighting covers python, markdown, json, yaml, bash, html, xml,
|
|
119
|
+
css, toml, js, sql, go, rust, java, and R (via tree-sitter-language-pack).
|
candat-0.1.1/README.md
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# candat
|
|
2
|
+
|
|
3
|
+
A terminal IDE with emacs keybindings, built on [Textual](https://textual.textualize.io/).
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
From GitHub, as a standalone tool (recommended — gives you a global `candat`
|
|
8
|
+
command in its own isolated environment):
|
|
9
|
+
|
|
10
|
+
```sh
|
|
11
|
+
uv tool install git+https://github.com/kavonrtep/candat
|
|
12
|
+
# or, with pipx (needs Python >= 3.10):
|
|
13
|
+
pipx install git+https://github.com/kavonrtep/candat
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Or with plain pip into the environment of your choice:
|
|
17
|
+
|
|
18
|
+
```sh
|
|
19
|
+
pip install git+https://github.com/kavonrtep/candat
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
To try it once without installing anything permanently:
|
|
23
|
+
|
|
24
|
+
```sh
|
|
25
|
+
uvx --from git+https://github.com/kavonrtep/candat candat
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Requires Python >= 3.10 and Linux.
|
|
29
|
+
|
|
30
|
+
## Run
|
|
31
|
+
|
|
32
|
+
```sh
|
|
33
|
+
candat [FILE|DIR ...]
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Passing a directory sets the file-tree root; files are opened in buffers.
|
|
37
|
+
|
|
38
|
+
## Keys (so far)
|
|
39
|
+
|
|
40
|
+
| Key | Action |
|
|
41
|
+
| --- | --- |
|
|
42
|
+
| `C-x C-f` | find file (opens new file if it doesn't exist) |
|
|
43
|
+
| `C-x C-s` | save buffer |
|
|
44
|
+
| `C-x C-w` | write buffer to another file |
|
|
45
|
+
| `C-x k` | kill buffer |
|
|
46
|
+
| `C-x b` | buffer list (Enter switches; next buffer preselected) |
|
|
47
|
+
| `C-x o` | switch focus between tree and editor |
|
|
48
|
+
| `C-x C-c` | quit (confirms if unsaved buffers) |
|
|
49
|
+
| `C-x C-x` | exchange point and mark |
|
|
50
|
+
| `C-x h` | mark whole buffer |
|
|
51
|
+
| `C-x u`, `C-/`, `C-z` | undo |
|
|
52
|
+
| `C-f` `C-b` `C-n` `C-p` `C-a` `C-e` | char/line movement |
|
|
53
|
+
| `M-f` `M-b` | word movement |
|
|
54
|
+
| `C-v` `M-v` | page down / up |
|
|
55
|
+
| `M-<` `M->` | beginning / end of buffer |
|
|
56
|
+
| `C-space` | set mark (movement extends region) |
|
|
57
|
+
| `C-k` | kill line (consecutive kills accumulate) |
|
|
58
|
+
| `C-w` / `M-w` | kill / copy region |
|
|
59
|
+
| `C-y` / `M-y` | yank / yank-pop |
|
|
60
|
+
| `M-d` / `M-backspace` | kill word forward / backward |
|
|
61
|
+
| `M-up` / `M-down` | move current line (or marked block) up / down |
|
|
62
|
+
| `C-s` / `C-r` | incremental search (smart case, wraps) |
|
|
63
|
+
| `C-x t` | toggle terminal panel (keys pass through raw; only `C-x` is reserved) |
|
|
64
|
+
| `Shift+PgUp/PgDn` | terminal scrollback (typing snaps back) |
|
|
65
|
+
| `C-c C-v` | cycle markdown preview: split / preview-only / off |
|
|
66
|
+
| `M-x`, `Ctrl+Shift+P` | command palette |
|
|
67
|
+
| `C-g` / `Esc` | cancel chord / prompt / search / mark |
|
|
68
|
+
|
|
69
|
+
`ESC` acts as the Meta prefix, so `ESC w` == `M-w`, `ESC x` == `M-x`, etc.
|
|
70
|
+
`Tab` completes paths in the find-file and write-file prompts.
|
|
71
|
+
|
|
72
|
+
The file tree opens files on selection. The default theme is `candat-light`
|
|
73
|
+
(high-contrast dark-on-white). The markdown preview is linked: it follows
|
|
74
|
+
the editor's scroll position.
|
|
75
|
+
|
|
76
|
+
## Development
|
|
77
|
+
|
|
78
|
+
```sh
|
|
79
|
+
uv run pytest
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
## Roadmap
|
|
83
|
+
|
|
84
|
+
1. ~~Skeleton: tree / tabs / status bar / C-x chords / open & save~~
|
|
85
|
+
2. ~~Emacs editing: kill ring, C-s/C-r isearch, mark & region, M-x palette~~
|
|
86
|
+
3. ~~Markdown mode: side-by-side live preview (debounced)~~
|
|
87
|
+
4. ~~Terminal panel (full PTY: forkpty + pyte)~~
|
|
88
|
+
5. ~~Polish: terminal scrollback, dirty-line rendering, path completion in
|
|
89
|
+
prompts, buffer list, scroll-synced preview, R/xml/html highlighting~~
|
|
90
|
+
|
|
91
|
+
Syntax highlighting covers python, markdown, json, yaml, bash, html, xml,
|
|
92
|
+
css, toml, js, sql, go, rust, java, and R (via tree-sitter-language-pack).
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "candat"
|
|
3
|
+
version = "0.1.1"
|
|
4
|
+
description = "A terminal IDE with emacs keybindings, built on Textual — editor, file tree, markdown preview, and a real PTY terminal"
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
authors = [
|
|
7
|
+
{ name = "Petr Novak", email = "petr@umbr.cas.cz" }
|
|
8
|
+
]
|
|
9
|
+
license = "MIT"
|
|
10
|
+
license-files = ["LICENSE"]
|
|
11
|
+
requires-python = ">=3.10"
|
|
12
|
+
keywords = ["editor", "ide", "terminal", "tui", "emacs", "textual", "markdown"]
|
|
13
|
+
classifiers = [
|
|
14
|
+
"Development Status :: 4 - Beta",
|
|
15
|
+
"Environment :: Console",
|
|
16
|
+
"Intended Audience :: Developers",
|
|
17
|
+
"Operating System :: POSIX :: Linux",
|
|
18
|
+
"Programming Language :: Python :: 3.10",
|
|
19
|
+
"Programming Language :: Python :: 3.11",
|
|
20
|
+
"Programming Language :: Python :: 3.12",
|
|
21
|
+
"Programming Language :: Python :: 3.13",
|
|
22
|
+
"Topic :: Text Editors :: Integrated Development Environments (IDE)",
|
|
23
|
+
]
|
|
24
|
+
dependencies = [
|
|
25
|
+
"pyte>=0.8.2",
|
|
26
|
+
"textual[syntax]>=8.2.8",
|
|
27
|
+
"tree-sitter-language-pack>=1.12.2",
|
|
28
|
+
]
|
|
29
|
+
|
|
30
|
+
[project.urls]
|
|
31
|
+
Homepage = "https://github.com/kavonrtep/candat"
|
|
32
|
+
Repository = "https://github.com/kavonrtep/candat"
|
|
33
|
+
Issues = "https://github.com/kavonrtep/candat/issues"
|
|
34
|
+
|
|
35
|
+
[project.scripts]
|
|
36
|
+
candat = "candat:main"
|
|
37
|
+
|
|
38
|
+
[build-system]
|
|
39
|
+
requires = ["uv_build>=0.9.24,<0.10.0"]
|
|
40
|
+
build-backend = "uv_build"
|
|
41
|
+
|
|
42
|
+
[dependency-groups]
|
|
43
|
+
dev = [
|
|
44
|
+
"pytest>=9.1.1",
|
|
45
|
+
"pytest-asyncio>=1.4.0",
|
|
46
|
+
]
|
|
47
|
+
[tool.pytest.ini_options]
|
|
48
|
+
asyncio_mode = "auto"
|
|
49
|
+
filterwarnings = [
|
|
50
|
+
"ignore:This process.*is multi-threaded, use of forkpty:DeprecationWarning",
|
|
51
|
+
]
|