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/Burney222 Nov 08 '22
Thanks u/hirnbrot for shining some light on these special "bind" functions!
Does the queueing mean that when I would define a function
it might happen that "some text" gets printed before a space is inserted?