Skip to main content

Bookmarks for your terminal

Project description

term-mark • bookmarks for your terminal 📚

Bookmark directories to quickly jump to them later, no more tabbing through directories!

Jump to path

Install

pip install term-mark

term-mark --init

A shell function, 'tm.zsh' will be created in $HOME/.config/zsh/zsh_functions and appended as a source to your .zshrc file.

You'll likely need to reload your .zshrc file before using tm

source $HOME/.zshrc

You can now use term-mark with 'tm' !

Disable Glyphs

By default, glyphs are used for markers. If your shell doesn't support glyphs or your not using a patched font, you can disable glyphs by setting an environment variable which will use '●', '○' characters as fallback marker icons. i.e.

add export TM_USE_GLYPHS=false to your .zshrc file

run source ~/.zshrc

Usage

  • Bookmark (toggle) the current directory: tm -M / --mark
  • Show bookmarks: tm -S / --show
  • Remove bookmarks (interactive) menu: tm -R / --remove
    • useful for removing multiple bookmarks at the same time

Auto-find & Add Bookmarks:

You can use tm --find <base dir> [--depth <number>] to search and add bookmarks for project directories (idenitifed by .git folder) under the base path provided.

e.g. you can run tm --find ~/dev (--depth 2 is default) to automatically add bookmarks to dirA, dirB, dirC directories

./dev
├── dirA          [bookmark added for `dirA`]
│   ├── .git            [<- .git found]
│   └── ...
├── dirB          [bookmark added for `dirB`]
│   ├── .git            [<- .git found]
│   ├── ...
│   ├── src             [bookmark NOT added `/dirB/src`]
│   |   └── ...
│   └── .vscode         [bookmark NOT added `.vscode`]
│       └── ...
├── GO
│   └── dirC      [bookmark added for `dirC`]
│       ├── .git        [<- .git found]
│       ├── .vscode
|       |   └── ...
│       └── ...
└── ...

Uninstall

pip uninstall term-mark

Remove the following line from your .zshrc file:

source "$HOME/.config/zsh/zsh_functions/tm.zsh"

Delete the shell function:

rm $HOME/.config/zsh/zsh_functions/tm.zsh

There's only 2 dependencies for term-mark, pfzy and prompt-toolkit If they're not used by another package you can also pip uninstall these for a completely clean uninstall.

Attribution

This CLI tool includes code and components from the InquirerPy package created by kazhala, specifically a fork from Gracer

InquirerPy is a powerful Python library for creating interactive command-line interfaces.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

term-mark-0.1.5.tar.gz (37.0 kB view details)

Uploaded Source

Built Distribution

term_mark-0.1.5-py3-none-any.whl (51.9 kB view details)

Uploaded Python 3

File details

Details for the file term-mark-0.1.5.tar.gz.

File metadata

  • Download URL: term-mark-0.1.5.tar.gz
  • Upload date:
  • Size: 37.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for term-mark-0.1.5.tar.gz
Algorithm Hash digest
SHA256 6d5479c446dd653bac255ee4bf8257634d8a4efb15826c0928840b7b3e59755e
MD5 384869fdd8db1ac2f323c3a992c1d059
BLAKE2b-256 57804b8116b7b13a4f32d6d9ade656f772105ac9b436810f7d727cf129ba2c7a

See more details on using hashes here.

File details

Details for the file term_mark-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: term_mark-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 51.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for term_mark-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 0cb9dccce90db2b6bf0de614ea075a3efe6003e73aaf00a766677dc2e7a47772
MD5 c83f21c272d8791cae04d6f8ce70fd3c
BLAKE2b-256 2adb15a64e35a8b82fb3acc83ae9d42b4a6fe3a27e16de87450a412afb5a4602

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page