Display a bookmark's containing file in bookmark-find feature
This commit is contained in:
@@ -10,7 +10,11 @@ bm_selected_bookmark_url=$(
|
||||
\( -type d -name "*archive" -prune \) \
|
||||
-o \( -type d -name "*z-sort" -prune \) \
|
||||
-o -name "*.bkmrk" -print |
|
||||
while IFS= read -r bookmark_file; do tail -n +2 "$bookmark_file"; done |
|
||||
while IFS= read -r bookmark_file; do
|
||||
# tail -n +2 "$bookmark_file" |
|
||||
# BKMRK_FZF_SED_STR="s/^(.*)$/$bookmark_file^\1/g" sed -E "$BKMRK_FZF_SED_STR"
|
||||
tail -n +2 "$bookmark_file" | awk -v f="$bookmark_file" '{print $0 "^" f}'
|
||||
done |
|
||||
fzf \
|
||||
--style full \
|
||||
--border --padding 0,1 \
|
||||
|
||||
Reference in New Issue
Block a user