mirror of
1
0
Fork 0

Compare commits

...

3 Commits

Author SHA1 Message Date
Adrian Calinescu 0b8cbe181b
Merge f5b086c89c into dd9502a09a 2023-12-21 15:54:42 -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
Adrian Calinescu f5b086c89c
Works with the new Windows Terminal (plus screenshot) 2019-10-15 09:06:42 +03:00
2 changed files with 17 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

@ -108,6 +108,13 @@ Troubleshooting
one, Powerline symbols will be broken.
The alternative is to use the [Mintty terminal for WSL][wsltty].
- **Will this work with the new [Windows Terminal]?**
Yes, yes it will. Here's a screenshot:
![image](https://user-images.githubusercontent.com/6472374/66804257-a8225d00-ef2a-11e9-901a-318a3a22151f.png)
[1681]: https://github.com/Microsoft/BashOnWindows/issues/1681
[wsltty]: https://github.com/mintty/wsltty
@ -131,13 +138,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 +196,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
@ -384,3 +392,5 @@ font.
![regedit](https://cloud.githubusercontent.com/assets/553208/19741304/71a2f3ae-9bc0-11e6-96aa-4c09a812c313.png)
[font linking]: https://msdn.microsoft.com/en-us/goglobal/bb688134.aspx
[Windows Terminal]: https://github.com/microsoft/terminal