Add t visual bind to RC

This commit is contained in:
Oliver Blanthorn 2021-04-01 11:22:30 +02:00
parent 619ba91040
commit e3f08611f7
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3

View file

@ -49,6 +49,9 @@ bind ,g js let uri = document.location.href.replace(/https?:\/\//,"git@").replac
bind d composite tab #; tabclose #
bind D tabclose
" make t open the selection with tabopen
bind --mode=visual t composite js document.getSelection().toString() | fillcmdline tabopen
" I like wikiwand but I don't like the way it changes URLs
bindurl wikiwand.com yy composite js document.location.href.replace("wikiwand.com/en","wikipedia.org/wiki") | clipboard yank