nano preferences
This commit is contained in:
parent
294a2b17b1
commit
9695392358
1 changed files with 19 additions and 12 deletions
|
|
@ -5,6 +5,7 @@
|
||||||
package = pkgs.unstable.nano;
|
package = pkgs.unstable.nano;
|
||||||
syntaxHighlight = true;
|
syntaxHighlight = true;
|
||||||
nanorc = ''
|
nanorc = ''
|
||||||
|
# nano preferences (alphabetical)
|
||||||
set atblanks
|
set atblanks
|
||||||
set autoindent
|
set autoindent
|
||||||
set casesensitive
|
set casesensitive
|
||||||
|
|
@ -24,31 +25,37 @@
|
||||||
set tabsize 4
|
set tabsize 4
|
||||||
set tabstospaces
|
set tabstospaces
|
||||||
set trimblanks
|
set trimblanks
|
||||||
|
# search keybinds: editor
|
||||||
bind M-F nextword main
|
|
||||||
bind M-B prevword main
|
|
||||||
|
|
||||||
unbind ^S main
|
unbind ^S main
|
||||||
bind ^S whereis main
|
bind ^S whereis main
|
||||||
bind Sh-M-F findnext main
|
bind Sh-M-F findnext main
|
||||||
bind Sh-M-B findprevious main
|
bind Sh-M-B findprevious main
|
||||||
|
# search keybinds: file browser
|
||||||
unbind ^S browser
|
unbind ^S browser
|
||||||
bind ^S whereis browser
|
bind ^S whereis browser
|
||||||
bind Sh-M-F findnext browser
|
bind Sh-M-F findnext browser
|
||||||
bind Sh-M-B findprevious browser
|
bind Sh-M-B findprevious browser
|
||||||
|
# text copying (killing) from editor
|
||||||
bind ^S whereis help
|
unbind M-K main
|
||||||
bind Sh-M-F findnext help
|
bind M-K copy main
|
||||||
bind Sh-M-B findprevious help
|
bind Sh-M-K cutfromcursor main
|
||||||
|
# copy from editor into system (Wayland) clipboard
|
||||||
bind Sh-M-C "{execute}| wl-copy > /dev/null 2>&1 {enter}{exit}n" main
|
bind Sh-M-C "{execute}| wl-copy > /dev/null 2>&1 {enter}{exit}n" main
|
||||||
|
# insert lambda into editor
|
||||||
|
unbind ^\ main
|
||||||
|
bind ^\ "λ" main
|
||||||
|
# center/raise/lower cursor position in editor
|
||||||
|
unbind ^L main
|
||||||
|
bind ^L cycle main
|
||||||
|
# editor cursor navigation by word boundaries (a la Emacs)
|
||||||
|
bind M-F nextword main
|
||||||
|
bind M-B prevword main
|
||||||
|
# editor cursor navigation horizontally
|
||||||
bind ^F forward main
|
bind ^F forward main
|
||||||
bind ^B back main
|
bind ^B back main
|
||||||
bind ^F forward browser
|
bind ^F forward browser
|
||||||
bind ^B back browser
|
bind ^B back browser
|
||||||
|
# editor buffer navigation
|
||||||
bind M-< prevbuf main
|
bind M-< prevbuf main
|
||||||
bind M-> nextbuf main
|
bind M-> nextbuf main
|
||||||
'';
|
'';
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue