From e9e9aedc7cf7f521485fcde69e36a117fd3ba70d Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Sat, 5 Mar 2016 22:42:00 +0000 Subject: Use dmenu for quickmarks and bookmarks --- .qutebrowser/bookmarks/urls | 1 + .qutebrowser/keys.conf | 8 ++++---- .qutebrowser/quickmarks | 9 ++++++++- .qutebrowser/userscripts/quickmarks-dmenu | 7 +++++++ 4 files changed, 20 insertions(+), 5 deletions(-) create mode 100755 .qutebrowser/userscripts/quickmarks-dmenu diff --git a/.qutebrowser/bookmarks/urls b/.qutebrowser/bookmarks/urls index 5496130..814231c 100644 --- a/.qutebrowser/bookmarks/urls +++ b/.qutebrowser/bookmarks/urls @@ -1,3 +1,4 @@ https://www.urbainvaes.com Urbain Vaes https://www.stallman.org/ Richard Stallman's Personal Page https://news.ycombinator.com/ Hacker News +http://192.168.0.20/#home MusicBox diff --git a/.qutebrowser/keys.conf b/.qutebrowser/keys.conf index de9241c..76f0e72 100644 --- a/.qutebrowser/keys.conf +++ b/.qutebrowser/keys.conf @@ -267,9 +267,12 @@ set-cmd-text -s :quickmark-load -w bookmark-add M -spawn --userscript bookmarks-dmenu +spawn --userscript quickmarks-dmenu u +spawn --userscript bookmarks-dmenu + b + set-cmd-text -s :bookmark-load -t gB @@ -413,9 +416,6 @@ set-cmd-text -s :bookmark-load undo -set-cmd-text -s :quickmark-load - b - [insert] # Keybindings for insert mode. # Since normal keypresses are passed through, only special keys are diff --git a/.qutebrowser/quickmarks b/.qutebrowser/quickmarks index 8b13789..c9d3450 100644 --- a/.qutebrowser/quickmarks +++ b/.qutebrowser/quickmarks @@ -1 +1,8 @@ - +MusicBox http://192.168.0.20/#playlists +Hacker News https://news.ycombinator.com/ +Urbain Vaes https://www.urbainvaes.com/ +Gitlist https://www.urbainvaes.com/git/ +Khoi's git http://bknguyen.org/cgit +Facebook https://www.facebook.com/ +LinkedIn https://www.linkedin.com/nhome/ +The Economist http://www.economist.com/ diff --git a/.qutebrowser/userscripts/quickmarks-dmenu b/.qutebrowser/userscripts/quickmarks-dmenu new file mode 100755 index 0000000..354b398 --- /dev/null +++ b/.qutebrowser/userscripts/quickmarks-dmenu @@ -0,0 +1,7 @@ +#!/bin/bash + +url=$(cat ~/.config/qutebrowser/quickmarks | dmenu -i -l 15 | awk '{print $NF}') + +[ -z ${url} ] && exit + +echo "open $url" >> "$QUTE_FIFO" -- cgit v1.2.3 From e89978a706940338caa413a9a385863a1d52998f Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Sun, 6 Mar 2016 11:21:03 +0000 Subject: [vimrc] Remove clipboard = ... to fix vim-vinegar bug --- .qutebrowser/quickmarks | 1 + .vim/vimrc | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/.qutebrowser/quickmarks b/.qutebrowser/quickmarks index c9d3450..9e0b00c 100644 --- a/.qutebrowser/quickmarks +++ b/.qutebrowser/quickmarks @@ -6,3 +6,4 @@ Khoi's git http://bknguyen.org/cgit Facebook https://www.facebook.com/ LinkedIn https://www.linkedin.com/nhome/ The Economist http://www.economist.com/ +Richard Stallman https://www.stallman.org/ diff --git a/.vim/vimrc b/.vim/vimrc index 57e6e5f..8bf3807 100644 --- a/.vim/vimrc +++ b/.vim/vimrc @@ -171,7 +171,6 @@ set noautochdir set cpoptions+=Iq set encoding=utf-8 set mouse=a -set clipboard=unnamedplus set lazyredraw set hidden -- cgit v1.2.3