Use up/down arrows to search sent history with the same prefix before cursor
LucunJi opened this issue ยท 0 comments
Is your feature request related to a problem? Please describe.
Just like the effect of history-search-backward
and history-search-forward
in bash, showing the previous/next message with the same string before the cursor when the up/down arrow key is pressed (instead of the immediate previous/next message) can greatly speed up typing, especially when typing commands
Example:
Let's say the sent history looks like this:
Hello! Let's make fun with some commands today.
/scoreboard objectives add n_deaths deathCount Deaths
you mean showing on sidebar?
/scoreboard objectives setdisplay sidebar n_deaths
looks good?
ok,
what about making it to the list?
Now I want to type /scoreboard objectives setdisplay list
quickly,
so I type /sc
then press the up arrow twice, it should show: (|
represents the cursor position)
/sc|oreboard objectives setdisplay sidebar n_deaths
followed by
/sc|oreboard objectives add n_deaths deathCount Deaths
If I move the cursor to the end of objectives
, and press down arrow key once, I have
/scoreboard objectives| setdisplay sidebar n_deaths
In this way, I don't need to go through each sent history with a different prefix, that's very convenient.