Compare commits

..
21 Commits
Author SHA1 Message Date
mattia d91467f114 nanorc: Merge-in new system file 2023-04-30 06:13:17 +02:00
mattia e94ba07fc5 nanorc: Add another key binding for enter
Fixes numpad enter key.
2022-04-10 14:17:43 +02:00
mattia eb4958643c nanorc: Add another key binding for writeout 2021-08-29 23:10:59 +02:00
mattia 127116965b nanorc: Add another key binding for help 2021-07-25 10:06:03 +02:00
mattia 7a2023eb93 nanorc: Add missing key binding for Mac format 2021-05-02 14:12:43 +02:00
mattia 4d15e6b324 nanorc: Show cursor in help menu
Apparently, I'm blind.
2021-05-02 14:11:32 +02:00
mattia 4712546103 nanorc: Customize key bindings
* Reorder key bindings as they are shown in the manual
* Add more custom bindings
* Remove conflicting bindings (duplicates and those that conflict with WM/DE shortcuts)
* Unbind keys for functions I don't use
* Some bindings are commented out because they don't work (e.g. special keys)
* Remove duplicate "set multibuffer" (probably a leftover)
2021-05-02 13:29:39 +02:00
mattia 0b49a06b6d nanorc: Clean up key bindings
* Reorder key bindings
* Remove unused unbindings
2021-04-30 21:55:18 +02:00
mattia 666ef71041 nanorc: Change some key bindings 2021-04-30 21:24:50 +02:00
mattia 47bd702fe8 nanorc: Only wrap at blank characters 2021-04-30 16:36:37 +02:00
mattia 99bf3ef4fd nanorc: Enable soft wrap 2021-04-30 16:32:39 +02:00
mattia ce6690be07 nanorc: Use backspace as a mentally sane individual 2021-04-30 16:21:24 +02:00
mattia b33bf3aa56 nanorc: Set a normal tab size 2021-04-30 16:11:17 +02:00
mattia c8530b0046 nanorc: Make status-bar messages disappear quickly 2021-04-30 16:10:07 +02:00
mattia a1b442b1af nanorc: Don't add a new line at the end of the file 2021-04-30 16:04:16 +02:00
mattia 952ec75ff2 nanorc: Enable line numbers 2021-04-30 16:02:27 +02:00
mattia 98851560b2 nanorc: Enable scrollbar 2021-04-30 15:56:57 +02:00
mattia cc16171671 nanorc: Enable automatic indentation 2021-04-30 15:56:44 +02:00
mattia d99442983f Add an installation script 2021-04-30 15:45:54 +02:00
mattia 803698b889 Import "nanorc" from "/etc/nanorc" 2021-04-30 15:42:58 +02:00
mattia b6d0e0be5b Initial upload 2021-04-30 15:41:11 +02:00
+18 -31
View File
@@ -14,12 +14,6 @@
## Inside string parameters, quotes should not be escaped -- the last
## double quote on the line will be seen as the closing quote.
## If you want ^F, ^B, M-F and M-B to do what they did before version 8.0:
# bind ^F forward main
# bind ^B back main
# bind M-F formatter main
# bind M-B linter main
## Make 'nextword' (Ctrl+Right) and 'chopwordright' (Ctrl+Delete)
## stop at word ends instead of at beginnings.
# set afterends
@@ -56,11 +50,7 @@ set autoindent
## Do case-sensitive searches by default.
# set casesensitive
## Interpret digits given on the command line after a colon after a filename
## as the line number to go to in that file.
# set colonparsing
## Constantly report the cursor position, in the status bar or minibar.
## Constantly display the cursor position in the status bar or minibar.
# set constantshow
## Use cut-from-cursor-to-end-of-line by default.
@@ -108,8 +98,8 @@ set linenumbers
# set minibar
## Enable mouse support, if available for your system. When enabled,
## mouse clicks can be used to place the cursor, set the mark (with
## two clicks), and execute shortcuts. The mouse will work in the
## mouse clicks can be used to place the cursor, set the mark (with a
## double click), and execute shortcuts. The mouse will work in the
## X Window System, and on the console when gpm is running.
# set mouse
@@ -132,14 +122,14 @@ set nonewlines
## string means the operating-directory feature is turned off.
# set operatingdir ""
## Remember the position of cursor and anchors for the next editing session.
## Remember the cursor position in each file for the next editing session.
# set positionlog
## Preserve the XON and XOFF keys (^Q and ^S).
# set preserve
## The characters treated as closing punctuation when justifying paragraphs.
## This may not contain blank characters. Only these terminating characters,
## This may not contain blank characters. Only these closing punctuations,
## optionally followed by closing brackets, can end sentences.
# set punct "!.?"
@@ -230,9 +220,9 @@ set tabsize 4
# set statuscolor bold,white,green
# set errorcolor bold,white,red
# set spotlightcolor black,lightyellow
# set selectedcolor lightwhite,#804
# set stripecolor ,#444
# set scrollercolor slate,#222
# set selectedcolor lightwhite,magenta
# set stripecolor ,yellow
# set scrollercolor cyan
# set numbercolor cyan
# set keycolor cyan
# set functioncolor green
@@ -255,12 +245,12 @@ set tabsize 4
## For all details, see 'man nanorc', section SYNTAX HIGHLIGHTING.
## To include most of the existing syntax definitions, you can do:
include /usr/share/nano/*.nanorc
include "/usr/share/nano/*.nanorc"
## Or you can select just the ones you need. For example:
# include /usr/share/nano/html.nanorc
# include /usr/share/nano/python.nanorc
# include /usr/share/nano/sh.nanorc
# include "/usr/share/nano/html.nanorc"
# include "/usr/share/nano/python.nanorc"
# include "/usr/share/nano/sh.nanorc"
## In /usr/share/nano/extra/ you can find some syntaxes that are
## specific for certain distros or for some less common languages.
@@ -270,6 +260,9 @@ include /usr/share/nano/*.nanorc
## independent of the settings of 'tabsize' and 'tabstospaces':
# extendsyntax python tabgives " "
## If <Tab> should always produce an actual TAB when editing a Makefile:
# extendsyntax makefile tabgives " "
## === Key bindings ===
## For all details, see 'man nanorc', section REBINDING KEYS.
@@ -297,19 +290,13 @@ bind ^H chopwordleft main
# unbind M-T main
## (Those functions are still accessible through ^T^J and ^T^V.)
## For quickly uppercasing or lowercasing the word that the cursor is on.
## For quickly uppercasing or lowercasing the word under or after the cursor.
## (These effectively select a word and pipe it through a sed command.)
#bind Sh-M-U "{nextword}{mark}{prevword}{execute}|sed 's/.*/\U&/'{enter}" main
#bind Sh-M-L "{nextword}{mark}{prevword}{execute}|sed 's/.*/\L&/'{enter}" main
## For copying a marked region to the system clipboard:
# bind Sh-M-C "{execute}| xsel -ib {enter}{undo}" main
## For normalizing Unicode to precomposed characters:
# bind Sh-M-N "{execute}| uconv -x nfc {enter}" main
## For wiping all anchors in a buffer:
# bind Sh-M-W "{execute}| cat {enter}" main
# bind Sh-M-T "{execute}|xsel -ib{enter}{undo}" main
## For snipping trailing blanks when you save a file:
# bind ^S "{execute}| sed 's/\s\+$//' {enter}{savefile}" main
@@ -555,7 +542,7 @@ unbind M-Y main
#bind Sh-M-Del cutfromcursor main // doesn't work
unbind M-K main
# nowrap
bind M-H breaklonglines main
bind M-H nowrap main
# tabstospaces
unbind M-O main
# mouse