diff options
author | Adrian Kummerlaender | 2016-07-03 13:38:41 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2016-07-03 13:38:41 +0200 |
commit | c825a0ac07768c467e054aeaf66a6200fb4af388 (patch) | |
tree | 73d18064f02d2501524250152d61a042d4e6736c /pentadactyl/.pentadactylrc | |
parent | e64e4ee382173905240c4f0f1951e3c152f11b38 (diff) | |
download | dotfiles-c825a0ac07768c467e054aeaf66a6200fb4af388.tar dotfiles-c825a0ac07768c467e054aeaf66a6200fb4af388.tar.gz dotfiles-c825a0ac07768c467e054aeaf66a6200fb4af388.tar.bz2 dotfiles-c825a0ac07768c467e054aeaf66a6200fb4af388.tar.lz dotfiles-c825a0ac07768c467e054aeaf66a6200fb4af388.tar.xz dotfiles-c825a0ac07768c467e054aeaf66a6200fb4af388.tar.zst dotfiles-c825a0ac07768c467e054aeaf66a6200fb4af388.zip |
Simplifiy pentadactyl citation escape logic
Diffstat (limited to 'pentadactyl/.pentadactylrc')
-rw-r--r-- | pentadactyl/.pentadactylrc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pentadactyl/.pentadactylrc b/pentadactyl/.pentadactylrc index 65312fa..5988081 100644 --- a/pentadactyl/.pentadactylrc +++ b/pentadactyl/.pentadactylrc @@ -58,11 +58,11 @@ nmap b :push2inbox<CR> command! cite -js <<EOF var entry = '\\n' - + '\ \ \ \ \[...\] ' + content.getSelection().toString() + ' \[...\]\\n' - + '\ \ \ \ \<br\/\>\<br\/\>\\n' - + '\ \ \ \ ― ' + buffer.URL + + ' [...] ' + content.getSelection().toString().replace('\n', '\n ') + ' [...]\\n' + + ' <br/>\<br/>\\n' + + ' ― ' + buffer.URL + '\\n'; -dactyl.execute('!echo -e "' + entry + '" >> ~/note/src/web/inbox.wiki'); +dactyl.execute('!echo -e "' + entry.replace('"', '\"') + '" >> ~/note/src/web/inbox.wiki'); EOF nmap c :cite<CR> |