All Projects β†’ urbainvaes β†’ Fzf Marks

urbainvaes / Fzf Marks

Licence: mit
Plugin to manage bookmarks in bash and zsh

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Fzf Marks

Forgit
πŸ’€ A utility tool powered by fzf for using git interactively.
Stars: ✭ 1,823 (+431.49%)
Mutual labels:  fzf, zsh-plugin
Fzf Tab
Replace zsh's default completion selection menu with fzf!
Stars: ✭ 761 (+121.87%)
Mutual labels:  fzf, zsh-plugin
Fzf Widgets
ZLE widgets of fzf
Stars: ✭ 72 (-79.01%)
Mutual labels:  fzf, zsh-plugin
Z.lua
⚑ A new cd command that helps you navigate faster by learning your habits.
Stars: ✭ 2,164 (+530.9%)
Mutual labels:  fzf, zsh-plugin
jq-zsh-plugin
jq zsh plugin
Stars: ✭ 155 (-54.81%)
Mutual labels:  fzf, zsh-plugin
smartcd
Expedite your navigation of Linux filesystem.
Stars: ✭ 35 (-89.8%)
Mutual labels:  fzf, zsh-plugin
fzf-zsh-plugin
ZSH plugin to enable fzf searches of a lot more stuff - docker, tmux, homebrew and more.
Stars: ✭ 117 (-65.89%)
Mutual labels:  fzf, zsh-plugin
Dotbare
Manage dotfiles and any git directories interactively with fzf
Stars: ✭ 327 (-4.66%)
Mutual labels:  fzf, zsh-plugin
git-prompt.zsh
A fast, customizable, pure-shell, asynchronous Git prompt for Zsh
Stars: ✭ 139 (-59.48%)
Mutual labels:  zsh-plugin
Coc Fzf
fzf ❀️ coc.nvim
Stars: ✭ 261 (-23.91%)
Mutual labels:  fzf
q
q - vim like macro registers for your bash and zsh shell!
Stars: ✭ 54 (-84.26%)
Mutual labels:  bookmarks
fzf-gems
a few fzf bindings for shell convenience
Stars: ✭ 25 (-92.71%)
Mutual labels:  fzf
Memex
Simple bookmarks and notes
Stars: ✭ 258 (-24.78%)
Mutual labels:  bookmarks
zhooks
Display Zsh hook functions and arrays
Stars: ✭ 36 (-89.5%)
Mutual labels:  zsh-plugin
Nb
CLI and local web plain text note‑taking, bookmarking, and archiving with linking, tagging, filtering, search, Git versioning & syncing, Pandoc conversion, + more, in a single portable script.
Stars: ✭ 3,846 (+1021.28%)
Mutual labels:  bookmarks
json2html-bookmarks
Convert Firefox bookmarks from JSON to HTML format (can be imported in other browsers)
Stars: ✭ 12 (-96.5%)
Mutual labels:  bookmarks
vscode-fzf-quick-open
vscode extension providing quick file/folder open and searching using fzf
Stars: ✭ 42 (-87.76%)
Mutual labels:  fzf
Kubectl Fzf
A fast kubectl autocompletion with fzf
Stars: ✭ 315 (-8.16%)
Mutual labels:  fzf
Adamantium Thief
πŸ”‘ Decrypt chromium based browsers passwords, cookies, credit cards, history, bookmarks, autofill. Version > 80 is supported.
Stars: ✭ 283 (-17.49%)
Mutual labels:  bookmarks
Golinks
🌐A web app that allows you to create smart bookmarks, commands and aliases by pointing your web browser's default search engine at a running instance. Similar to bunny1 or yubnub.
Stars: ✭ 258 (-24.78%)
Mutual labels:  bookmarks

fzf-marks

This plugin can be used to create, delete, and navigate marks in bash and zsh. It depends on Junegunn Choi's fuzzy-finder fzf.

(This video was generated with screenkey -g $(slop -n -f '%g') and simplescreenrecorder.)

Installation

Zsh

If you use zsh, I recommend installing with a plugin manager. In the case of zgen, for example, simply add the following line to your plugin list:

zgen load urbainvaes/fzf-marks

Fish

If you use fish, then you can use fisher:

fisher install urbainvaes/fzf-marks

Bash

If you use bash, or if you use zsh without a plugin manager, source the file fzf-marks.plugin.bash or fzf-marks.plugin.zsh from your shell startup file to enable the plugin.

Bash installation example:

# Clone the git repository in the current directory
git clone https://github.com/urbainvaes/fzf-marks.git

# Add a line to ~/.bashrc to load the plugin whenever bash starts in interactive mode
echo "source $PWD/fzf-marks/fzf-marks.plugin.bash" >> ~/.bashrc

# Source the plugin now so we don't have to restart bash to start using it
source fzf-marks/fzf-marks.plugin.bash

Enabling completion:

In bash, completion should be available automatically. In zsh, completion needs to be enabled explicitly before sourcing the plugin. This is usually done automatically by plugin managers, but it can also be achieved manually with the following command in your .zshrc.

autoload -Uz compinit && compinit

Usage

The script exposes two functions:

  • mark <mark>, to register a new mark to the current directory;
  • fzm [<optional-initial-query>], to jump to or delete a mark using fzf.

Most of the keybindings in the search window are the default fzf ones. The only additions are

  • ctrl-y, to jump to a match;
  • ctrl-t, to toggle a match for deletion;
  • ctrl-d, to delete selected matches.

By default, the plugin binds the key ctrl-g to fzm.

Customization

Config Default Description
FZF_MARKS_FILE ${HOME}/.fzf-marks File containing the marks data
FZF_MARKS_COMMAND fzf --height 40% --reverse Command used to call fzf
FZF_MARKS_JUMP \C-g (bash) or ^g (zsh) Keybinding to fzm
FZF_MARKS_COLOR_LHS 39 (default) ANSI color code of left-hand side
FZF_MARKS_COLOR_RHS 36 (cyan) ANSI color code of right-hand side
FZF_MARKS_COLOR_COLON 33 (yellow) ANSI color code of separator
FZF_MARKS_NO_COLORS 0 Set this to 1 to disable colors
FZF_MARKS_KEEP_ORDER 0 Set this to 1 to keep order of marks

See e.g. here for a description of ANSI color codes.

FAQ

Question: Is it possible to limit the fzf search to the mark label, i.e. to exclude the path from the search?

Yes, this is possible by passing the options -n (for the field number to use for the search) and -d (for the delimiter) to fzf. For example,

FZF_MARKS_COMMAND="fzf --height 40% --reverse -n 1 -d ' : '"

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].