Open Chrome Bookmarks using Choose
TODO: Create gif screen recording
I might as well start with this... This coded very minimally, and its not yet battle tested. Right now it just works for my use case, but feel free to submit an MR.
Some gotchas:
- Install script is very simple. You just need to add the script in your path.
- There's no confiration file.
- You can add other source for completion by sourcing a zsh script that contains functions
_choose_from_bookmarks__add_*
from lib path.
The following tools are required to be installes
# First, install the dependencies. (kscript, zsh and choose-gui)
git clone git@github.com:chardskarth/choose-from-chrome-bookmarks.git
# add `bin` directory in exported path
echo "PATH=\$PATH:<location of this repo>/bin" >> ~/.profile
usage: choose-from-chrome-bookmarks <command>
These are the available commands:
refreshlist Refresh a cached list of bookmarks
triggerchoose Trigger choose
Adding a hotkey for this script... I use skhd.
This is optional.
brew install skhd
echo "ctrl - return : choose-from-chrome-bookmarks triggerchoose &>> ~/.logs/choose_from_bookmarks.log" >> ~/.config/skhd/skhdrc
I also use gdrive cli to automatically search folders and files from specific gdrive folders.
- Add a
.zsh
file in the /libs. These are sourced upon invoking therefreshlist
command. - Create functions that starts with
_choose_from_bookmarks__add_
. These functions are invoked and their response is put in the cached text thats displayed in "choose".
You can just remove this repository from $PATH