diff --git a/README.md b/README.md index 1c7a571..08fe9b3 100644 --- a/README.md +++ b/README.md @@ -93,3 +93,4 @@ to open, copy and add bookmarks via dmenu/rofi. - [ ] Enhance `edit` arguments. Should take similar arguments as `open`. - [ ] Allow reading the bookmark file via stdin and writing it out via stdout. This would allow someone to easily encrypt their bookmarks if they wish. +- [ ] Add notification on adding bookmark via dmenu diff --git a/extra/README.md b/extra/README.md index 7df7930..ba59031 100644 --- a/extra/README.md +++ b/extra/README.md @@ -15,6 +15,5 @@ To list matching tags: `sxbm_dmenu +tag` * `-y` or `--yank` will copy the selected link to your clipboard (requires `xclip`) instead of opening them. Example: `sxbm_dmenu -y title` -* `-a` or `--add` is an alias to `sxbm add`. -Example: `sxbm_dmenu -a link.com +tag` - +* `-a` or `--add` pipes user input to `sxbm add`. +Example: `sxbm_dmenu -a` diff --git a/extra/sxbm_dmenu b/extra/sxbm_dmenu index 498f642..eb1ad03 100755 --- a/extra/sxbm_dmenu +++ b/extra/sxbm_dmenu @@ -5,7 +5,6 @@ # Author: NRK ## Copyright 2021 NRK ## Licensed under GPL v3. See LICENSE for more details. - # Change "dmenu" to "rofi -dmenu" if you wish to use rofi # NOTE: i do not use rofi, and haven't tested if it works or not prompt="dmenu -i -l 24" @@ -21,7 +20,7 @@ bm_yank() { } bm_add() { - sxbm add "$@" 2>&1 | xargs -I{} $prompt -p {} + echo | $prompt -p "Add bookmark:" | xargs sxbm add | dmenu } case "$1" in