Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/can-lehmann/editor
A text editor written in Nim
https://github.com/can-lehmann/editor
autocompletion editor linux multiple-cursors nim syntax-highlighting terminal terminal-based text-editor
Last synced: 3 months ago
JSON representation
A text editor written in Nim
- Host: GitHub
- URL: https://github.com/can-lehmann/editor
- Owner: can-lehmann
- License: mit
- Created: 2019-12-22T11:46:28.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-11-07T20:24:03.000Z (about 3 years ago)
- Last Synced: 2024-10-25T09:24:47.404Z (3 months ago)
- Topics: autocompletion, editor, linux, multiple-cursors, nim, syntax-highlighting, terminal, terminal-based, text-editor
- Language: Nim
- Homepage:
- Size: 1.16 MB
- Stars: 30
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Editor
A text editor written in Nim.![Screenshot](screenshot.png)
## Features
- Quick Open
- Multiple Cursors
- Automatic Indentation
- Unicode Support (utf-8)
- Syntax Highlighting
- Multiple Windows
- Autocompletion
- Mouse Support## Installation
### ncurses Backend
When using the ncurses backend, the development package for
ncurses needs to be installed.```bash
nim compile -r --opt:speed main.nim
```### SDL2 Backend
The sdl backend requires the [sdl2 module](https://github.com/nim-lang/sdl2).
You also need to supply your own font which has to be placed in `assets/font.ttf`.```bash
nim compile -r -o:main-sdl --opt:speed -d:sdl_backend main.nim
```## Keyboard Bindings
### Window Management
- CtrlP+N+Left/Right/Up/Down: Create new window
- CtrlP+A: Select Application
- CtrlP+Left/Right/Up/Down: Change active window
- AltLeft/Right/Up/Down: Change active window
- CtrlW: Close active window
- CtrlQ: Quit- F1: Search command
### Editor
- CtrlN: New
- CtrlT: Quick Open
- CtrlS: Save- CtrlR: Find definition
- CtrlF: Find
- CtrlG: Go to line
- CtrlE: Close active prompt- CtrlC: Copy
- CtrlX: Cut
- CtrlV: Paste- F2: Show autocomplete
- Tab: Autocomplete word / Indent
- ShiftTab: Unindent- CtrlZ: Undo
- CtrlY: Redo
- CtrlO: Jump to matching bracket
- CtrlShiftO: Select bracket#### Multiple Cursors
- CtrlD: Select next
- ShiftAltUp/Down: New cursor
- Escape: Remove cursors
- CtrlU: Remove last cursor## License
This project is licensed under the MIT License.
See LICENSE.txt for more details.