README.adoc: talk about view and edit helpers

This commit is contained in:
Přemysl Eric Janouch 2020-09-28 21:18:08 +02:00
parent 0a66ae4d26
commit 9a2f6ab5cf
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 18 additions and 4 deletions

View File

@ -89,10 +89,10 @@ bind -x '"\201": sdn-restore'
bind '"\eo":"\200\C-m\201"'
....
Colors
------
Colours
-------
Here is an example of a '~/.config/sdn/look' file; the format is similar to
that of git, only named colors aren't supported:
that of git, only named colours aren't supported:
....
cursor 231 202
@ -101,7 +101,7 @@ cwd bold
input
....
Filename colors are taken from the `LS_COLORS` environment variable.
Filename colours are taken from the `LS_COLORS` environment variable.
Run `dircolors` to get some defaults.
Bindings
@ -115,6 +115,20 @@ normal l choose
normal ? help
....
Helper programs
---------------
The F3 and F4 keys are normally bound to actions 'view' and 'edit', similarly to
Norton Commander and other orthodox file managers. The helper programs used
here may be changed by setting the PAGER and VISUAL (or EDITOR) environment
variables.
While it is mostly possible to get 'mcview' working using an invocation like
`PAGER='mcview -u' sdn`, beware that this helper cannot read files from its
standard input, nor does it enable overstrike processing by default (F9, could
be hacked around in 'mc.ext' by turning on the `nroff` switch for a custom file
extension, just without actually invoking 'nroff'), and thus it can't show the
program help. 'sdn' is currently optimised for 'less' as the pager.
Similar software
----------------
* https://elvish.io/ is an entire shell with an integrated ranger-like file