You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Show Replace history for Editor find widget #50583
Peng Lyu (@rebornix) I saw that you fixed it in #50189. I am sorry I did not inform you that I was also looking into this. Actually, I have introduced history in Search & Find in the beginning, so I thought I will finish it by fixing this :).
Anyway, I implemented in generic way here. History navigation was implemented outside the inputBox. So every time we need this feature I am duplicating it. For example, similar code is there at following places
Search input
Search replace
Search pattern inputs
Find input
Find replace
Problems filter
Terminal find
I now have a HistoryInputBox widget which has history navigation. Only thing that has to be done from outside to call APIs add/show. I pushed my changes by overriding your implementation.
Let me also tell you another cool change I am doing here. At present, we have two commands (previous/next) per each input box for navigating history. Since history navigation is encapsulated in the widget, I can now have only two commands for all above input boxes. It is similar to the List widget with commands. So basically, I will remove all commands and replace them with following two commands
Sandeep Somavarapu (@sandy081) I remembered I saw this issue/task someday but when I was going through my debts I forgot about it. Your change is the right way to handle the history navigation and it's great that we have this HistoryInputBox. BTW, do you plan to adopt this component for Terminal and Webview Find box ?
I see that you are using find history navigation feature in Editor, Terminal & Webview respectively. Currently each component defines its own commands for navigation. As an user if I want to customise, I have to update all these commands which is cumbersome. Hence, I have merged all these commands into two generic commands input.action.historyNext and input.action.historyPrevious. Please read comment for more information. Impact of this change is that the current history navigation commands will be deprecated in favour of above.
For one milestone, I would be showing following deprecating warning message when user triggers current commands and will remove them in the following milestone.
Warning is shown only if user has customised keybindings for any of these commands. For backward compatibility, new commands also support alt+up/down keybindings.
Activity
sandy081 commentedon May 28, 2018
Follow up issue from #18233
#50583 Implement Input box with history
#50583 Adopt findInput to use HistoryInputBox
#50583 Adopt to HistoryInputBox
#50583
sandy081 commentedon Jun 7, 2018
Peng Lyu (@rebornix) I saw that you fixed it in #50189. I am sorry I did not inform you that I was also looking into this. Actually, I have introduced history in Search & Find in the beginning, so I thought I will finish it by fixing this :).
Anyway, I implemented in generic way here. History navigation was implemented outside the inputBox. So every time we need this feature I am duplicating it. For example, similar code is there at following places
I now have a HistoryInputBox widget which has history navigation. Only thing that has to be done from outside to call APIs add/show. I pushed my changes by overriding your implementation.
Let me also tell you another cool change I am doing here. At present, we have two commands (previous/next) per each input box for navigating history. Since history navigation is encapsulated in the widget, I can now have only two commands for all above input boxes. It is similar to the List widget with commands. So basically, I will remove all commands and replace them with following two commands
input.action.historyNext,input.action.historyPrevious.This is a breaking change but worth to have.
rebornix commentedon Jun 7, 2018
Sandeep Somavarapu (@sandy081) I remembered I saw this issue/task someday but when I was going through my debts I forgot about it. Your change is the right way to handle the history navigation and it's great that we have this
HistoryInputBox. BTW, do you plan to adopt this component for Terminal and Webview Find box ?sandy081 commentedon Jun 7, 2018
Yes, Terminal & Webview find widgets were also adopted.
sandy081 commentedon Jun 7, 2018
Peng Lyu (@rebornix) Daniel Imms (@Tyriar) Matt Bierner (@mjbvz)
I see that you are using find history navigation feature in Editor, Terminal & Webview respectively. Currently each component defines its own commands for navigation. As an user if I want to customise, I have to update all these commands which is cumbersome. Hence, I have merged all these commands into two generic commands
input.action.historyNextandinput.action.historyPrevious. Please read comment for more information. Impact of this change is that the current history navigation commands will be deprecated in favour of above.For one milestone, I would be showing following deprecating warning message when user triggers current commands and will remove them in the following milestone.
Feedback is appreciated. Thanks.
#50583 Show deprecated warning message when previous history commands…
roblourens commentedon Jun 8, 2018
I like this change, thanks for doing this. Please just give me a FYI @mention for stuff like this in the future, I thought it was broken for a bit :)
rebornix commentedon Jun 8, 2018
cc Christopher Leidigh (@cleidigh) .
Tyriar commentedon Jun 8, 2018
LGTM 👍
sandy081 commentedon Jun 8, 2018
roblourens Oops.. Sorry Rob.. How could I forget you... Not next time 👍
#50583 Remove keybindings for existing commands and assing to new com…
#50583 Remove the existing history navigation commands
sandy081 commentedon Jun 8, 2018
roblourens Peng Lyu (@rebornix) Daniel Imms (@Tyriar) Matt Bierner (@mjbvz)
FYI: Removed following commands
Warning is shown only if user has customised keybindings for any of these commands. For backward compatibility, new commands also support alt+up/down keybindings.