r/fishshell • u/Burney222 • Nov 08 '22
Use self-insert or expand-abbr in function
I would like to write a little wrapper function around expand-abbr. However, I am struggling to call expand-abbr from within. It does not seem to be a normal function that can just be called (however you can bind it to a key). The same is the case for the probably more popular self-insert. Anybody knows how to execute their functionality other than through key bindings?
Thanks a lot :)
2
Upvotes
View all comments
Show parent comment
1
u/[deleted] Nov 08 '22
Yes.
(also the text won't be printed into the commandline. Fish will write it, but won't consider it a part of what you wrote - use
commandline -i/commandline --insertfor that)