diff options
author | Adrian Kummerlaender | 2016-10-09 23:51:05 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2016-10-09 23:51:05 +0200 |
commit | d7eee2128720de4c322d618abe88acadf7e8d2c8 (patch) | |
tree | b8fb8320fc3927a83f4494a9a81f0343f3804250 /pentadactyl/.pentadactylrc | |
parent | 0b3b823816b10a32aef079d87cb7522c6d6cbca7 (diff) | |
download | dotfiles-d7eee2128720de4c322d618abe88acadf7e8d2c8.tar dotfiles-d7eee2128720de4c322d618abe88acadf7e8d2c8.tar.gz dotfiles-d7eee2128720de4c322d618abe88acadf7e8d2c8.tar.bz2 dotfiles-d7eee2128720de4c322d618abe88acadf7e8d2c8.tar.lz dotfiles-d7eee2128720de4c322d618abe88acadf7e8d2c8.tar.xz dotfiles-d7eee2128720de4c322d618abe88acadf7e8d2c8.tar.zst dotfiles-d7eee2128720de4c322d618abe88acadf7e8d2c8.zip |
Use _ScratchBook X_ as the default _bookmark_ mechanism
Diffstat (limited to 'pentadactyl/.pentadactylrc')
-rw-r--r-- | pentadactyl/.pentadactylrc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pentadactyl/.pentadactylrc b/pentadactyl/.pentadactylrc index 5988081..a0791a0 100644 --- a/pentadactyl/.pentadactylrc +++ b/pentadactyl/.pentadactylrc @@ -40,7 +40,6 @@ if ( buffer.URL.spec.startsWith('about:reader?') ) { dactyl.open('about:reader?url=' + encodeURIComponent(buffer.URL.spec)) } EOF -map -builtin -ex <F9> :reader command! push2inbox -js <<EOF var selection = content.getSelection().toString(); @@ -54,8 +53,6 @@ if ( selection ) { dactyl.execute('!echo -e "' + entry + '" >> ~/note/src/web/inbox.wiki'); EOF -nmap b :push2inbox<CR> - command! cite -js <<EOF var entry = '\\n' + ' [...] ' + content.getSelection().toString().replace('\n', '\n ') + ' [...]\\n' @@ -65,4 +62,9 @@ var entry = '\\n' dactyl.execute('!echo -e "' + entry.replace('"', '\"') + '" >> ~/note/src/web/inbox.wiki'); EOF + +map -builtin -ex <F9> :reader +map -builtin -ex <F10> :emenu ScrapBook X.Show in Sidebar + +nmap b :emenu ScrapBook X.Save Page<CR> nmap c :cite<CR> |