Add bookmark to buku from qutebrowser

This commit is contained in:
Thomas Dehaeze 2019-03-05 22:07:30 +01:00
parent a83d18a5dc
commit 6db055f77a
2 changed files with 229 additions and 223 deletions

View File

@ -680,15 +680,6 @@ c.url.start_pages = ['https://start.duckduckgo.com']
config.bind('gK', 'tab-move -')
config.bind('gJ', 'tab-move +')
# Go to specific websites
config.bind('gy', 'open -o https://youtube.com/')
# Add current page to Buku (Bookmark Manager)
# TODO - Add it interactively
# Add a way to specify tags
# Maybe use Rofi for that
config.bind('B', 'spawn buku -a {url}')
# config.bind('h', 'scroll left')
# config.bind('i', 'enter-mode insert')
# config.bind('j', 'scroll down')
@ -751,6 +742,12 @@ config.bind('B', 'spawn buku -a {url}')
# config.bind('}}', 'navigate next -t')
#+END_SRC
*** Go to specific websites
#+begin_src conf
config.bind('gy', 'open -o https://www.youtube.com/feed/subscriptions')
config.bind('gr', 'open -o https://www.reddit.com/')
#+end_src
** Caret mode
#+BEGIN_SRC conf
# config.bind('$', 'move-to-end-of-line', mode='caret')
@ -898,13 +895,23 @@ config.bind(',c', ':hint links spawn catt cast {hint-url}')
Add url to refile.org
#+BEGIN_SRC conf
config.bind(',r', ':spawn --userscript ~/.config/qutebrowser/userscripts/test.sh')
config.bind(',r', ':spawn --userscript ~/.config/qutebrowser/userscripts/add-to-orgmode-refile.sh')
#+END_SRC
Add page to Bookmarks
#+begin_src conf
config.bind(',b', 'spawn buku -a {url}')
#+end_src
Open bookmark using buku
#+begin_src conf
config.bind(',o', 'spawn ~/bin/buku_run')
#+end_src
* Userscripts
** TODO Add url to refile.org
** Add url to refile.org
:PROPERTIES:
:header-args: :tangle ~/.config/qutebrowser/userscripts/test.sh
:header-args: :tangle ~/.config/qutebrowser/userscripts/add-to-orgmode-refile.sh
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:

View File

@ -135,7 +135,6 @@ Plug 'vim-scripts/utl.vim' " Univeral Text Linking - Execute URLs, footnotes, op
** Others / To test
#+BEGIN_SRC conf
Plug 'petRUShka/vim-sage' " Support for Sage computation language
" Plug 'francoiscabrol/ranger.vim' " Ranger integration in vim and neovim
" Plug 'brooth/far.vim' " Find And Replace Vim plugin
" Plug 'justinmk/vim-gtfo' " Go to Terminal or File manager