]> Sergey Matveev's repositories - nnn.git/commitdiff
Add examples of conflicting keybinds
authorArun Prakash Jana <engineerarun@gmail.com>
Wed, 20 Nov 2019 20:53:02 +0000 (02:23 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Wed, 20 Nov 2019 20:53:02 +0000 (02:23 +0530)
misc/quitcd/quitcd.bash
misc/quitcd/quitcd.csh
misc/quitcd/quitcd.fish
misc/quitcd/quitcd.zsh

index 95939a009929cd60c4b9de74a4dabe4b55c233c4..70498cbf709f6527550d05ad88700247641220c9 100644 (file)
@@ -6,6 +6,11 @@ n()
         return
     fi
 
+    # Unmask ^Q (, ^V etc.) (if required, see `stty -a`) to Quit nnn
+    # stty start undef
+    # stty stop undef
+    # stty lwrap undef
+
     # The default behaviour is to cd on quit (nnn checks if NNN_TMPFILE is set)
     # To cd on quit only on ^G, export NNN_TMPFILE after the call to nnn
     export NNN_TMPFILE=${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.lastd
index b9db423c1e503818d3bfa4a5f337e7d8d06471bb..9806cefb6b41e872ccacf32c86034460f82d7588 100644 (file)
@@ -4,4 +4,9 @@
 # To cd on quit only on ^G, export NNN_TMPFILE after the call to nnn
 set NNN_TMPFILE=~/.config/nnn/.lastd
 
+# Unmask ^Q (, ^V etc.) (if required, see `stty -a`) to Quit nnn
+# stty start undef
+# stty stop undef
+# stty lwrap undef
+
 alias n 'nnn -fis; source "$NNN_TMPFILE"; rm -f "$NNN_TMPFILE"'
index 12fccedb4617dd260a43dadd40a6087369ae79c1..3053656ab3ce71d7ef1eff5da833df84749f2fb1 100644 (file)
@@ -17,6 +17,11 @@ function n --description 'support nnn quit and change directory'
         set -x NNN_TMPFILE "$HOME/.config/nnn/.lastd"
     end
 
+    # Unmask ^Q (, ^V etc.) (if required, see `stty -a`) to Quit nnn
+    # stty start undef
+    # stty stop undef
+    # stty lwrap undef
+
     nnn $argv
 
     if test -e $NNN_TMPFILE
index 20a613f93a7c9aeaadf2c86a6ac4947a3cfd1b15..57f0fcf331f6b6c1ec8f47134f42eb600c5fe629 100644 (file)
@@ -10,6 +10,11 @@ n()
     # To cd on quit only on ^G, export NNN_TMPFILE after the call to nnn
     export NNN_TMPFILE=${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.lastd
 
+    # Unmask ^Q (, ^V etc.) (if required, see `stty -a`) to Quit nnn
+    # stty start undef
+    # stty stop undef
+    # stty lwrap undef
+
     nnn "$@"
 
     if [ -f $NNN_TMPFILE ]; then