Documentation
This commit is contained in:
parent
7a16b51b8d
commit
005a022307
|
@ -19,6 +19,7 @@ addUrl(){
|
|||
"$(curl -s "$url" | grep '<title' | sed 's/<title>\(.*\)<\/title>/\1/')" \
|
||||
>> $bookmarks
|
||||
fi
|
||||
printf "added '%s' to '%s'" "$url" "$bookmarks"
|
||||
}
|
||||
|
||||
while getopts chu: flag; do
|
||||
|
|
8
src/completions/_add-bookmark
Normal file
8
src/completions/_add-bookmark
Normal file
|
@ -0,0 +1,8 @@
|
|||
#compdef _add-bookmark add-bookmark
|
||||
|
||||
_arguments : \
|
||||
"(-u -h)-c[take url from clipboard]" \
|
||||
"(-c -h)-u[url as argument]:bookmark url:" \
|
||||
"(-u -c)-h[print usage and exit]"
|
||||
_arguments : $arguments
|
||||
|
29
src/manpages/add-bookmark.1.scd
Normal file
29
src/manpages/add-bookmark.1.scd
Normal file
|
@ -0,0 +1,29 @@
|
|||
add-bookmark(1)
|
||||
|
||||
# NAME
|
||||
|
||||
*add-bookmark* - adds a bookmark to *qutebrowser(1)* bookmarks file.
|
||||
|
||||
# SYNOPSIS
|
||||
|
||||
*copy-bookmark -u|h|c*
|
||||
|
||||
# DESCRIPTION
|
||||
*qutebrowser(1)* saves its bookmarks in
|
||||
'*~/.config/qutebrowser/bookmarks/urls*'.
|
||||
This is a script to be able to add bookmarks to that file without launching
|
||||
qutebrowser.
|
||||
|
||||
# OPTIONS
|
||||
|
||||
*-u*
|
||||
URL given as argument
|
||||
|
||||
*-c*
|
||||
URL read from clipboard
|
||||
|
||||
*-h*
|
||||
print usage and exit
|
||||
|
||||
# SEE ALSO
|
||||
*qutebrowser(1)*, *xclip(1)*
|
|
@ -27,6 +27,10 @@ both problems.
|
|||
Adds a bookmark to clipboard using *xclip(1)*, see its own manpage for more
|
||||
information
|
||||
|
||||
*add-bookmark*
|
||||
Adds a bookmark to *qutebrowser(1)*'s list of bookmarks
|
||||
|
||||
# SEE ALSO
|
||||
|
||||
*open-bookmark(1)*, *xdg-open(1)*, *xclip(1)*
|
||||
*open-bookmark(1)*, *copy-bookmark(1)*, *add-bookmark(1)*, *xdg-open(1)*,
|
||||
*xclip(1)*
|
||||
|
|
Loading…
Reference in a new issue