-
Notifications
You must be signed in to change notification settings - Fork 29.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show Replace history for Editor find widget #50583
Comments
Follow up issue from #18233 |
@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
This is a breaking change but worth to have. |
@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 |
Yes, Terminal & Webview find widgets were also adopted. |
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 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. |
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 :) |
cc @cleidigh . |
LGTM 👍 |
@roblourens Oops.. Sorry Rob.. How could I forget you... Not next time 👍 |
@roblourens @rebornix @Tyriar @mjbvz FYI: Removed following commands [
'search.history.showNextIncludePattern',
'search.history.showPreviousIncludePattern',
'search.history.showNextExcludePattern',
'search.history.showPreviousExcludePattern',
'search.history.showNext',
'search.history.showPrevious',
'search.replaceHistory.showNext',
'search.replaceHistory.showPrevious',
'find.history.showPrevious',
'find.history.showNext',
'workbench.action.terminal.findWidget.history.showNext',
'workbench.action.terminal.findWidget.history.showPrevious',
'editor.action.extensioneditor.showNextFindTerm',
'editor.action.extensioneditor.showPreviousFindTerm',
'editor.action.webvieweditor.showNextFindTerm',
'editor.action.webvieweditor.showPreviousFindTerm'
] 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. |
Show Replace history for Editor find widget
The text was updated successfully, but these errors were encountered: