fzf-marker: The terminal command Tweak https://github.com/pindexis/marker.git
1.zsh more powerful then bash
2.fzf A command-line fuzzy finder written in Go
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"
$ brew install grep
$ ln -s /usr/local/Cellar/grep/3.3/bin/ggrep /usr/local/bin/grep
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 {{}}
# 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'