slap is a Sublime-like terminal-based text editor that strives to make editing
from the terminal easier. It has:
$ curl -sL https://raw.githubusercontent.com/slap-editor/slap/master/install.sh | sh
If you already have NodeJS installed:
$ sudo npm install -g slap@latest
$ slap fish.c
$ slap fish1.c fish2.c
$ slap redfish/ # open dir
$ slap # new file
slap supports INI or JSON config files. You can put configuration wherever rc can find it.
A mostly empty configuration file with some useful comments is created in ~/.slap/config
if an existing file isn't found.
Pass configuration via command line:
$ slap --header.style.bg red file.c
Slap is fully customizeable and supports plugins written in JS. You can place
single JS files, or NodeJS packages, into ~/.slap/plugins/
.
To write your own plugin, a good starting point is
slap-clipboard-plugin.
Please note that plugin packages must have "keywords": ["slap-plugin"]
in
package.json
.
Un éditeur de texte "type" Sublime Text codé en HTML CSS et JS
à suivre...
via @sebsauvage : http://sebsauvage.net/links/?a7-xJQ