From cc6c4e01ffab77681d8fd6989580ce9c5c4957c3 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Fri, 3 Jun 2016 20:23:33 +0200 Subject: Simplify custom note taking integration in pentadactyl --- pentadactyl/.pentadactylrc | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) (limited to 'pentadactyl/.pentadactylrc') diff --git a/pentadactyl/.pentadactylrc b/pentadactyl/.pentadactylrc index 702c881..65312fa 100644 --- a/pentadactyl/.pentadactylrc +++ b/pentadactyl/.pentadactylrc @@ -43,34 +43,26 @@ EOF map -builtin -ex :reader command! push2inbox -js <> ~/note/src/web/inbox.wiki'); +dactyl.execute('!echo -e "' + entry + '" >> ~/note/src/web/inbox.wiki'); EOF nmap b :push2inbox command! cite -js <\\\\n' - + '\\ \\ \\ \\ ― ' + escape(buffer.URL) + + '\ \ \ \ \[...\] ' + content.getSelection().toString() + ' \[...\]\\n' + + '\ \ \ \ \\\\n' + + '\ \ \ \ ― ' + buffer.URL + '\\n'; -dactyl.execute('!echo ' + entry + ' >> ~/note/src/web/inbox.wiki'); +dactyl.execute('!echo -e "' + entry + '" >> ~/note/src/web/inbox.wiki'); EOF nmap c :cite -- cgit v1.2.3