https://github.com/claby2/claditor
Modal text editor
https://github.com/claby2/claditor
c-plus-plus console-application modal-editing text-editor
Last synced: 6 months ago
JSON representation
Modal text editor
- Host: GitHub
- URL: https://github.com/claby2/claditor
- Owner: claby2
- License: mit
- Created: 2020-10-08T09:30:56.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-01T08:56:49.000Z (almost 5 years ago)
- Last Synced: 2025-02-12T19:47:59.755Z (8 months ago)
- Topics: c-plus-plus, console-application, modal-editing, text-editor
- Language: C++
- Homepage:
- Size: 220 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# claditor
Modal text editor.
## Getting Started
### Dependencies
* ncurses
* cxxopts### Building
```shell
$ git clone --recursive https://github.com/claby2/claditor.git
$ cd claditor
$ mkdir build
$ cd build
$ cmake ..
$ make clad
```## Commands
Pressing `:` in normal mode will set the mode to command mode.
Basic commands:
* `q`: Quit buffer
* `w`: Write file## Configuration
### Runtime Configuration
`claditor` will search `$HOME/.config/claditor/cladrc` for a runtime configuration where each line in a runtime configuration file will be interpreted as a command.
### Colorscheme
`claditor` will search for color schemes in `$HOME/.config/claditor/colors/`.
Any valid color scheme files here will be parsed and available to use from the editor.Example color scheme file `colorscheme.clad`:
background = #101010
foreground = #d1d1d1
comment = #808080
accent = #353535
color1 = #FF0000
color2 = #00FF00
color3 = #FFFF00
color4 = #0000FF
color5 = #FF00FF
color6 = #00FFFF