Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using sman with fzf #22

Open
riscie opened this issue May 27, 2019 · 1 comment
Open

Using sman with fzf #22

riscie opened this issue May 27, 2019 · 1 comment

Comments

@riscie
Copy link

riscie commented May 27, 2019

Hi there

Nice tool you have there, I really like it. 👍
I just wanted to add how I started to use sman togheter with fzf (https://github.com/junegunn/fzf):

.zshrc

#sman
alias s=sman
function sman_show() {
    sman ls | fzf --reverse --ansi --bind 'enter:execute(snippet=$(echo {} | awk '\''{print $1}'\'' ); echo $snippet ;sman run $snippet)+abort'
    zle redisplay
}

zle -N sman_show
bindkey '^q' sman_show

this allows one to use the keyboard-shortcut (ctrl-q here) to do the following:

Maybe it is of help. I could make a pr for the readme, but the readme is something a bit more personal to the original author, which is why I assume if you would like to add it, you could phrase it in your own words.

@tokozedg
Copy link
Owner

Hi
This is quite cool. Feel free to add new PR.
I barely maintain this project anyway 😬

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants