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

Fish shell support #2

Closed
rodrigobdz opened this issue Nov 18, 2018 · 4 comments
Closed

Fish shell support #2

rodrigobdz opened this issue Nov 18, 2018 · 4 comments

Comments

@rodrigobdz
Copy link

Is it possible to get this plugin to work with Fish?

@floor114
Copy link
Member

@rodrigobdz Exactly this one - not. But I think it's possible to make such a plugin for Fish.

Set key label with:
echo -ne "\033]1337;SetKeyLabel=F${1}=${2}\a"
${1} - function key number
${2} - key text

And after that bind renamed key for some command:
bindkey $keys[$1] $3
$keys[$1] - key code f1, f2 and so on ('^[OP' '^[OQ' '^[OR' '^[OS' '^[[15~' '^[[17~' '^[[18~' '^[[19~' '^[[20~' '^[[21~' '^[[23~' '^[[24~')
$3 - command

You can try it in your terminal, because I don't use Fish.

@rodrigobdz
Copy link
Author

Thanks. I will give it a try!

@floor114
Copy link
Member

@rodrigobdz Actually you can just modify this plugin a bit, it is well-scaled.

@rodrigobdz
Copy link
Author

@floor114 I just released fish-apple-touchbar. I had to adapt a significant amount of things to fish but it works! 🎉

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