nwallace / fzf-marker

The terminal command tweak from @pindexis/marker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Brief:

fzf-marker: The terminal command Tweak https://github.com/pindexis/marker.git

asciicast

Depends

1.zsh more powerful then bash
2.fzf A command-line fuzzy finder written in Go

How to install?

1.treat it as oh-my-zsh plugin

  $ mkdir .oh-my-zsh/custom/plugins/fzf-marker
  $ mv fzf-marker.plugin.zsh .oh-my-zsh/custom/plugins/fzf-marker
  config .zshrc file in line plugins=(... fzf-marker)

2.manual install

  [[ -s "fzf-marker.plugin.zsh" ]] && source "fzf-marker.plugin.zsh"

Keybind:

1.ctrl+space:
show markers from fzf tty
OR
replace maker into real value if '{{' exists in cmdline
2.ctrl+v:
move to next placeholder and set default val in {{}}

Environment:

# must before: export ZSH=$HOME/.oh-my-zsh if treat it as plugin
export FZF_MARKER_CONF_DIR=~/.config/marker
export FZF_MARKER_COMMAND_COLOR='\x1b[38;5;255m'
export FZF_MARKER_COMMENT_COLOR='\x1b[38;5;8m'
export FZF_MARKER_MAIN_KEY='\C-@'
export FZF_MARKER_PLACEHOLDER_KEY='\C-v'

About

The terminal command tweak from @pindexis/marker

License:MIT License


Languages

Language:Shell 100.0%