diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2014-01-25 15:32:13 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2014-01-25 15:32:13 -0800 |
commit | 6d13b8bbc0a797bd1403c3084c6152480c98ace4 (patch) | |
tree | 768cb4cc259fed69efbcd64736b8a05d3947b25c /share/functions/down-or-search.fish | |
parent | 2139334c36a0f169a129ae9dfb0be5bd3e07854b (diff) |
Teach down-or-search how to use down-arrow to begin pager navigation
Diffstat (limited to 'share/functions/down-or-search.fish')
-rw-r--r-- | share/functions/down-or-search.fish | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/share/functions/down-or-search.fish b/share/functions/down-or-search.fish index 8bacfb4c..e3a9ccb3 100644 --- a/share/functions/down-or-search.fish +++ b/share/functions/down-or-search.fish @@ -5,6 +5,13 @@ function down-or-search -d "Depending on cursor position and current mode, eithe return end + # If we are navigating the pager, then up always navigates + if commandline --paging-mode + commandline -f down-line + return + end + + # We are not already in search mode. # If we are on the bottom line, start search mode, # otherwise move down |