https://github.com/alexf91/booky
Simple bookmarks manager for the command line
https://github.com/alexf91/booky
bookmarks cli productivity
Last synced: over 1 year ago
JSON representation
Simple bookmarks manager for the command line
- Host: GitHub
- URL: https://github.com/alexf91/booky
- Owner: alexf91
- License: gpl-3.0
- Created: 2018-04-30T08:53:17.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-18T14:23:56.000Z (about 8 years ago)
- Last Synced: 2025-02-13T03:17:47.715Z (over 1 year ago)
- Topics: bookmarks, cli, productivity
- Language: Python
- Size: 17.6 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# Booky
A simple bookmark manager for the command line.
There are several more powerful alternatives, but it's not always possible to
install them. Booky only depends on the Python standard library.
## Setup
To be able to change directories, a wrapper function around Booky is required.
### zsh completion
```zsh
# Wrappers for booky
alias booky='python -m booky'
function bcd() {
# Restore a directory from booky
if [ $# -gt 1 ]; then
return 1
fi
DIR=$(booky get $1)
if [ $? != 0 ]; then
return 1
fi
cd $DIR
}
# Completion for bcd
function _bcd() {
local bookmarks
bookmarks=("${(@f)$(python -m booky list -m)}")
_describe 'bookmark' bookmarks
}
setopt complete_aliases
compdef _bcd bcd
```
## Notes
The bookmarks file is not locked, so simultaneous reading and writing results
in undefined behavior.