Hello Amit, think about what happens in a shell if I bind the up key to "history-search-backward". I type a string and, when I press the up key, the shell tries to autocomplete it by looking in the history for commands that begin with that string. I want to replicate this behaviour in the CIW. Currently, if I press the up key in the CIW, it will scan all the commands in the history. So, I need a function that tells me what the user has typed so far in the input line of the CIW before pressing the enter key
↧