Add an example to how to export bookmarks to vimb - bookmarks.sh - Simple bookmark manager
(HTM) hg clone https://bitbucket.org/iamleot/bookmarks.sh
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) changeset f64cfd7707dd9e69616b19d4111a7efe34de1ae4
(DIR) parent bd1e28ebf51bf17c0f58f624d2a5826707334a2f
(HTM) Author: Leonardo Taccari <iamleot@gmail.com>
Date: Tue, 16 Oct 2018 10:51:56
Add an example to how to export bookmarks to vimb
Diffstat:
README | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff -r bd1e28ebf51b -r f64cfd7707dd README
--- a/README Tue Oct 16 09:23:40 2018 +0200
+++ b/README Tue Oct 16 10:51:56 2018 +0200
@@ -44,5 +44,10 @@
This format can also be used by `surfraw`. For more information about that
please give a look to the `Bookmarks` section of the surfraw(1) man page.
+To export all bookmarks to vimb the following one liner can be used:
+
+ % bookmarks list |
+ awk -F '\t' '{ gsub(",", " ", $3); print $2 "\t" $4 "\t" $1 " " $3 }'
+
bookmarks needs a sed(1) implementation that supports the `-i` non-standard
option.