JunoLab / atom-ink

IDE toolkit for Atom
MIT License
228 stars 40 forks source link

command history search via ^r key in the console? #105

Closed BoundaryValueProblems closed 6 years ago

BoundaryValueProblems commented 7 years ago

If I invoke julia via terminal without using atom's console, I can search through my past command history by typing ^r. On the other hand, using the console in the atom editor, so far, I haven't find any way to search through my command history. Of course by typing "up arrow" key, I can see my immediate previous command, but often, I have to type many times to reach to the command I want to run again. I am wondering whether the atom's console has a capability of searching a specific command from the command history. (Of course, I do not want to open ~/.julia_history using some other editor to search a specific command). Thanks for your help! BVPs

MikeInnes commented 7 years ago

We don't have search per se right now. What we do is searching by the start of the command which will do the job most of the time; you can type e.g. the first letter of the command and press up to go through commands starting with that.

BoundaryValueProblems commented 7 years ago

Thanks a lot, MikeInnes. But when I type the first letter of the command, the list of all possible commands starting with that letter in various packages is shown, and not the list of the commands I used earlier in the session. Moreover, when I press the up key, it goes through that list of all possible commands starting with that letter, not the list of the command history. What should I do?

MikeInnes commented 7 years ago

What you're seeing is actually autocompletions rather than history. To see the history just press esc to get rid of the autocomplete and then press up.

BoundaryValueProblems commented 7 years ago

Thanks, MikeInnes! I didn't know that esc key trick!