aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/up-or-search.fish
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-01-18 12:42:53 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-01-18 12:42:53 -0800
commit808bc42f2a75e4af70ae992f6b7c1a4bf59eac50 (patch)
treecc236e47eb3a0d9028fae2f6aafbb78efbce8e59 /share/functions/up-or-search.fish
parent9920047b346cd2aeb1a086dbd3c2e1e9856fd2b0 (diff)
Further work on keyboard navigating the completion list
Diffstat (limited to 'share/functions/up-or-search.fish')
-rw-r--r--share/functions/up-or-search.fish6
1 files changed, 6 insertions, 0 deletions
diff --git a/share/functions/up-or-search.fish b/share/functions/up-or-search.fish
index fc51d710..98179ad7 100644
--- a/share/functions/up-or-search.fish
+++ b/share/functions/up-or-search.fish
@@ -5,6 +5,12 @@ function up-or-search -d "Depending on cursor position and current mode, either
return
end
+ # If we are navigating the pager, then up always navigates
+ if commandline --paging-mode
+ commandline -f up-line
+ return
+ end
+
# We are not already in search mode.
# If we are on the top line, start search mode,
# otherwise move up