Manage your bookmarks seamlessly from the command line with x. This tool offers a range of commands to simplify bookmarking tasks, enhancing your workflow effortlessly.
You need to have Go and Sqlite installed on your machine.
go install github.com/ShubhamVerma1811/x
Running without adding to PATH
$HOME/go/bin/x
With adding to PATH
echo 'export PATH=$PATH/yourhomepath/go/bin' >> ~/.zshrc # or ~/.bashrc or perferred shell.
From the official docs:
The install directory is controlled by the GOPATH and GOBIN environment variables. If GOBIN is set, binaries are installed to that directory. If GOPATH is set, binaries are installed to the bin subdirectory of the first directory in the GOPATH list. Otherwise, binaries are installed to the bin subdirectory of the default GOPATH ($HOME/go or %USERPROFILE%\go).
x [command]
- completion (c): Generate autocompletion scripts for your specified shell
- delete (d): Remove a bookmark
- export (e): Export the database to a JSON file
- help (h): Get detailed information about any command
- list (l): Display your saved bookmarks
- open (o): Open a bookmark
- save (s): Save a new bookmark
- update (u): Update an existing bookmark
# # Display help for the main command
x -h, --help
# For more detailed information about a specific command
x [command] --help
Usage:
x list [flags]
Aliases:
list, l
Flags:
-h, --help # Display help for the list command
--type string # Filter bookmarks by type (default "all")
Usage:
x save [flags]
Aliases:
save, s
Flags:
-h, --help # Display help for the save command
Usage:
x delete [flags]
Aliases:
delete, d
Flags:
-h, --help # Display help for the delete command
Usage:
x export [flags]
Flags:
-h, --help # Display help for the export command
Usage:
x open [flags]
Aliases:
open, o
Flags:
-h, --help: # Display help for the open command
Usage:
x update [flags]
Flags:
-h, --help # Display help for the update command
--id int # ID of the bookmark to update
--url string # URL of the bookmark to update
Enhance your command-line bookmarking experience with x!