mirror of
1
0
Fork 0

Compare commits

...

3 Commits

Author SHA1 Message Date
Łukasz Siemiradzki 31f695ef2e
Merge 6fc9ad1c9d into dd9502a09a 2023-12-21 11:41:11 -08:00
Gregory Pakosz dd9502a09a added support for urlscan, preferred over urlview which is now unmaintained, resolves #695 2023-12-21 19:45:15 +01:00
Łukasz SIEMIRADZKI 6fc9ad1c9d Don't use C-a as a prefix, keep C-b as the only prefix. 2023-11-15 12:10:39 +01:00
3 changed files with 12 additions and 4 deletions

View File

@ -1637,7 +1637,10 @@ run 'cut -c3- "$TMUX_CONF" | sh -s _apply_configuration'
#
# _urlview() {
# tmux capture-pane -J -S - -E - -b "urlview-$1" -t "$1"
# tmux split-window "'$TMUX_PROGRAM' ${TMUX_SOCKET:+-S "$TMUX_SOCKET"} show-buffer -b 'urlview-$1' | urlview || true; '$TMUX_PROGRAM' ${TMUX_SOCKET:+-S "$TMUX_SOCKET"} delete-buffer -b 'urlview-$1'"
# command='false'
# command -v urlview > /dev/null 2>&1 && command='urlview'
# command -v urlscan > /dev/null 2>&1 && command='urlscan --compact --dedupe'
# tmux split-window "'$TMUX_PROGRAM' ${TMUX_SOCKET:+-S "$TMUX_SOCKET"} show-buffer -b 'urlview-$1' | $command || true; '$TMUX_PROGRAM' ${TMUX_SOCKET:+-S "$TMUX_SOCKET"} delete-buffer -b 'urlview-$1'"
# }
#
# _fpp() {

View File

@ -370,6 +370,10 @@ tmux_conf_copy_to_os_clipboard=false
# set -g prefix C-a
# bind C-a send-prefix
# don't use C-a as a prefix, keep C-b as the only prefix
# set -gu prefix2
# unbind C-a
# if you don't want Oh my tmux! to alter a binding, use #!important
# bind c new-window -c '#{pane_current_path}' #!important

View File

@ -131,13 +131,14 @@ Features
on macOS, `xsel`, `xclip`, or `wl-copy` on Linux)
- support for 4-digit hexadecimal Unicode characters
- [Facebook PathPicker][] integration if available
- [Urlview][] integration if available
- [Urlscan][] (preferred) or [Urlview][] integration if available
[Powerline]: https://github.com/Lokaltog/powerline
[maximize-pane]: http://pempek.net/articles/2013/04/14/maximizing-tmux-pane-new-window/
[reattach-to-user-namespace]: https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard
[Facebook PathPicker]: https://facebook.github.io/PathPicker/
[Urlview]: https://packages.debian.org/stable/misc/urlview
[Urlscan]: https://github.com/firecat53/urlscan
The "maximize any pane to a new window with `<prefix> +`" feature is different
from builtin `resize-pane -Z` as it allows you to further split a maximized
@ -188,8 +189,8 @@ This configuration uses the following bindings:
- `<prefix> m` toggles mouse mode on or off
- `<prefix> U` launches Urlview (if available)
- `<prefix> F` launches Facebook PathPicker (if available)
- `<prefix> U` launches Urlscan (preferred) or Urlview, if available
- `<prefix> F` launches Facebook PathPicker, if available
- `<prefix> Enter` enters copy-mode
- `<prefix> b` lists the paste-buffers