Skip to content

Show Replace history for Editor find widget #50583

Closed

Description

Show Replace history for Editor find widget

Activity

  1. added
    editor-find
    feature-request
    on May 28, 2018
  2. sandy081 commented on May 28, 2018

    @sandy081
    MemberAuthor

    Follow up issue from #18233

  3. added 4 commits that reference this issue on Jun 7, 2018
  4. sandy081 commented on Jun 7, 2018

    @sandy081
    MemberAuthor

    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

    input.action.historyNext, input.action.historyPrevious.

    This is a breaking change but worth to have.

  5. rebornix commented on Jun 7, 2018

    @rebornix
    Contributor

    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 ?

  6. sandy081 commented on Jun 7, 2018

    @sandy081
    MemberAuthor

    Yes, Terminal & Webview find widgets were also adopted.

  7. sandy081 commented on Jun 7, 2018

    @sandy081
    MemberAuthor

    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.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.

    image

    Feedback is appreciated. Thanks.

  8. added a commit that references this issue on Jun 7, 2018
  9. roblourens commented on Jun 8, 2018

    @roblourens
    Member

    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 :)

  10. rebornix commented on Jun 8, 2018

    @rebornix
    Contributor
  11. Tyriar commented on Jun 8, 2018

    @Tyriar
    Contributor

    LGTM 👍

  12. sandy081 commented on Jun 8, 2018

    @sandy081
    MemberAuthor

    roblourens Oops.. Sorry Rob.. How could I forget you... Not next time 👍

  13. added 2 commits that reference this issue on Jun 8, 2018
  14. sandy081 commented on Jun 8, 2018

    @sandy081
    MemberAuthor

    roblourens Peng Lyu (@rebornix) Daniel Imms (@Tyriar) Matt Bierner (@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.

  15. locked and limited conversation to collaborators on Jul 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

debteditor-findfeature-requeston-testplan

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions