A personal code editor I've written for myself. Because why not?
It's not so featured, it's missing a lot of things mainly because I don't use them or I was too lazy to add them.
- Vim commands like:
:w
,:q
,:wq
,:qa
,:wa
,:wqa
, with support for!
to force actions. - Open files with
:e
using path autocomplete. - Switch buffers with
:buffer
and autocomplete. - Execute shell commands using Xonsh supporting both python and bash.
:set
command for configuration.- RC files
.snorc
using python and optionally Xonsh. - Custom color styles.
- Syntax highlighting powered by Tree-sitter.
- LSP client powered by sansio-lsp-client.
- colorscheme: Change active color scheme.
- set: Set or view configuration options. Supports options like color schemes, tab settings, etc.
- edit (e): Open or switch to a file, with line position support.
- write (w), wall (wa): Save current or all buffers.
- quit (q), qall (qa): Quit current or all windows, with force option.
- split (sp), vsplit, hsplit: Split windows horizontally or vertically.
- next (bn, wnext), previous (bp, wprevious): Navigate buffers or windows.
- echo: Display messages within the editor.
- exec: Run shell commands using Xonsh.
Sno-py uses Tree-sitter for efficient syntax highlighting. For details on setting up Tree-sitter and customizing highlighting, refer to the API Documentation.
usage: [-h] [-o] [-O] [files ...]
Vim-like text editor
positional arguments:
files Files to open
options:
-h, --help show this help message and exit
-o, --open-split Open files in horizontal splits
-O, --open-vsplit Open files in vertical splits
Available in api.md