Code editor for who don't know how to use vi
Project description
Textual Code
Code editor for who don't know how to use vi
[!WARNING]
This project is in the early stages of development. It is not ready for use yet.
What is Textual Code?
Textual Code is a TUI-based code editor that feels familiar right from the start.
You’ve probably had to SSH into a server at some point just to tweak a few lines of code. However, vi or Emacs can be overkill for quick fixes, requiring you to remember a whole host of commands for even the simplest changes. Furthermore, nano doesn’t always provide enough features for comfortable coding, and setting up a GUI editor on a remote server can be a real hassle.
That’s why Textual Code was created. You likely use a GUI editor like VS Code or Sublime Text in your day-to-day work, and Textual Code offers a similar experience with no learning curve. It behaves much like any other code editor you’re used to.
We’re not asking you to switch to Textual Code as your main editor. Just remember it’s there when you need to jump onto a server and make a few quick edits. It’s that simple.
Features
[!WARNING]
This project is in the early stages of development. the features listed below are not yet implemented or are only partially implemented.
- Commonly used shortcuts, such as
Ctrl+Sto save andCtrl+Fto search - Command palette for quick access to all features, and no need to remember shortcuts
- Multiple cursors
- Mouse support
- Find and replace from workspace
- Explore files in the sidebar
- Open files to tabs
- Syntax highlighting
TODO
- Explore files
- Show the files in the sidebar
- Open a specific folder from the command palette
- Open a specific folder from command arguments
- Create
- Create a new file from the sidebar
- Create a new file from the command palette
- Create a new folder from the sidebar
- Create a new folder from the command palette
- Open file
- Open a specific file from the sidebar
- Open files to tabs
- Open new file from the command palette
- Open new file from shortcut
- Open a specific file from the command palette
- Open a specific file from command arguments
- Save file
- Save the current file
- Save as the current file
- Save the current file from shortcut
- Save the current file from the command palette
- Save all files
- Close file
- Close the current file
- Close the current file from shortcut
- Close the current file from the command palette
- Ask to save the file before closing
- Close all files
- Delete
- Delete the current file
- Delete the current file from the command palette
- Delete a specific file from the sidebar
- Delete a specific file from the command palette
- Delete a specific folder from the sidebar
- Delete a specific folder from the command palette
- Ask to confirm before deleting
- Edit file
- Basic text editing
- Multiple cursors
- Code completion
- Syntax highlighting
- Detect the language from the file extension
- Change the language
- Add more languages
- Change Indentation size and style
- Change line ending
- Change encoding
- Show line and column numbers
- Goto line and column
- Search and replace
- Plain Search
- Regex search
- Replace all
- Select all occurrences
- In the current file
- In all files
- Markdown preview
- Show the markdown preview
- Live preview
- Split view
- Split the view horizontally
- Split the view vertically
- Close the split view
- Resize the split view
- Move the focus to the split view
- Move tabs between split views
- Sidebar
- Show the sidebar
- Hide the sidebar
- Resize the sidebar
- Setting
- Themes
- UI
- Syntax highlighting
- Shortcuts
- Editor
- default indentation size and style
- default line ending
- default encoding
- Themes
- Etc
- Support EditorConfig
- Release
- Package the project
- Make the project available on PyPI
Usage
Textual Code is not available on PyPI yet.
You can run the code using Docker.
docker compose build app
docker compose run --rm app
Development
(You need to use devcontainer to run the code)
To open the textual console, run the following command:
uv run textual console
Then, you can run the following command to run the code:
uv run textual run --dev textual_code:main
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file textual_code-0.0.2.tar.gz.
File metadata
- Download URL: textual_code-0.0.2.tar.gz
- Upload date:
- Size: 64.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.5.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b8383ca929d8380e5a7689eb67baefa985eb1084fac0447a14000bbd2878e5af
|
|
| MD5 |
d168933bbe03dcc2d302b0d9ed8d9c3b
|
|
| BLAKE2b-256 |
eeebd8b36920aad87d545308674759548891ed433992f609a59b6f8e9f17a7e9
|
File details
Details for the file textual_code-0.0.2-py3-none-any.whl.
File metadata
- Download URL: textual_code-0.0.2-py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.5.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2d01a3e390268692f109c59e28dbc44b23f465d324eccb3c98bffa359db477f
|
|
| MD5 |
0d5aae122ef33e14f8f44bd2aca11b5b
|
|
| BLAKE2b-256 |
ffb81665a7dab71ee375c1f943d40419171c0e660294b0443b927fcb23f1586e
|