A simple text editor written in rust.
Redit opened in Windows and Linux (WSL) showing the Dracula theme (separate) and the default Solarized dark theme.
- Terminal listens to resize events
- Page Up/Down, Home/End, Arrow, and Ctrl-Arrow key navigation
- Select text with Shift
- Multiple file buffers
- Copy and Paste (not yet using system clipboard)
- Highlight selected text
- Syntax highlighting
- Mouse support (dependent on terminal emulator)
- Undo and redo history
- Command palette
- Sublime Themes (
.tmTheme
) inthemes
subfolder of config directory - Sublime syntaxes (
.sublime-syntax
) insyntaxes
subfolder of config directory
Roughly listed in order of priority:
- Directory opening (medium)
- Search (hard)
- Better Ctrl-Arrow key navigation (medium)
- Ask to reload file when changed on disk (hard)
- Copy and paste using system clipboard
Ctrl-q
- quits the current editor (or program when in last editor)Ctrl-r
- reloads the current file from diskCtrl-s
- saves the currently open file (or asks where to save new file)Ctrl-o
- opens a fileCtrl-e
- opens the command paletteCtrl-c
,Ctrl-x
,Ctrl-v
- copy, cut, and paste respectively (works across editor buffers)Ctrl-p
orCtrl-n
- switch to the previous or next editor respectivelyCtrl-b
- creates a new editorHome
orEnd
- moves to the beginning or end of the current linePageUp
orPageDown
- moves (up to) one screen height up or downBackspace
orDelete
- deletes the character directly behind or in front of the cursorEnter
- creates a line break by copying the line break at the end of the current lineEscape
- exits the command palette if active- Anything other than characters is currently ignored (note: doesn't even refresh editor)
The following commands are implemented:
save [file_path]
- Saves the current file asfile_path
open [file_path]
- Opensfile_path
in the current editor (gracefully asks to discard changes)reload
- Reloads the current file from disk (gracefully asks to discard changes)quit
- Closes the current editor (gracefully asks to discard changes) or closes program on last editor quit
The config folder is ~/.config/redit
.
Supported settings are in [config_folder]/settings.toml
with the following keys:
theme = "Solarized (light)"
(pulls from a default list of themes and any in thethemes
subfolder)