Pager features: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
copy to clipboard |
copy to clipboard (maybe unnecessary, since tmux can do this) |
||
smart case for search |
smart case for search |
||
Line 19: | Line 19: | ||
less --no-init --quit-if-one-screen |
less --no-init --quit-if-one-screen |
||
end |
end |
||
</syntaxhighlight>wrap-around search - if you search for a flag but it's after it happened, it comes up empty... |
|||
</syntaxhighlight> |
|||
Strangely can't search man page for bind-key, try `man tmux` even `man tmux | less`... huh |
|||
Ok it's using some weird - character: |
|||
fish $ echo bind‐key bind-key | xxd |
|||
00000000: 6269 6e64 e280 906b 6579 2062 696e 642d bind...key bind- |
|||
00000010: 6b65 790a key. |
|||
Hmmm |
|||
<pre> |
|||
>>> unicodedata.name('-') |
|||
'HYPHEN-MINUS' |
|||
>>> unicodedata.name('‐') |
|||
'HYPHEN' |
|||
</pre> |
|||
🤔 |
Latest revision as of 23:06, 18 January 2024
copy to clipboard (maybe unnecessary, since tmux can do this)
smart case for search
good handling of colors (?)
resume feature... maybe
I have some LESS env var that I forget, maybe -R?
wrapping & centering: "zen" reading mode
syntax highlighting?
Oh this is fun
$ functions pager
# Defined in /Users/razzi/.config/fish/functions/pager.fish @ line 1
function pager
less --no-init --quit-if-one-screen
end
wrap-around search - if you search for a flag but it's after it happened, it comes up empty...
Strangely can't search man page for bind-key, try `man tmux` even `man tmux | less`... huh
Ok it's using some weird - character:
fish $ echo bind‐key bind-key | xxd 00000000: 6269 6e64 e280 906b 6579 2062 696e 642d bind...key bind- 00000010: 6b65 790a key.
Hmmm
>>> unicodedata.name('-') 'HYPHEN-MINUS' >>> unicodedata.name('‐') 'HYPHEN'
🤔