Replies: 3 comments 8 replies
|
Thank you for your question. As I checked, there is probably no way to insert text into the Readline buffer from an alias. Currently, the return value of an alias function is executed immediately, since it doesn’t need to interact with Readline. From what I’ve seen, several other shells do allow sending text to the input buffer, which is a sufficient reason to consider supporting this feature in Nyagos as well. I will think about how to specify this feature. If you have any options or ideas, please feel free to share them. |
|
Thanks. It works! |
|
I have closed this discussion. Please feel free to reopen it if you need. |


Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I wrote a test Lua script that pipes the history output to fzf. After selection, I use awk to extract the command and write it to a file. Then I read the file contents and pass them back to Nyagos. I want Nyagos to display the read content on the command line without executing it.
Pressing C_w correctly outputs without execution, but the hfzf alias executes instead. How should hfzf be modified to work correctly?
All reactions