Skip to content

Do not show me a file if there are no results #8278

Closed

Description

#8184

Steps to Reproduce:

  1. Search / replace for a something
  2. Replace all inside a file
  3. Notice we still show that file with 'no matches'. I would expect that file is no longer in the list

screen shot 2016-06-28 at 11 36 40

Activity

  1. added
    search
    on Jun 28, 2016
  2. sandy081 commented on Jun 28, 2016

    @sandy081
    Member

    Benjamin Pasero (@bpasero) Isidor Nikolic (@isidorn)

    Following are the reasons, I want to retain the empty file

    • It is consistent with Search results - When a file entry is modified to not have search results
    • During replace, if user undo then file with results should be shown back. If we remove the entry then this will not happen.
  3. bpasero commented on Jun 28, 2016

    @bpasero
    Contributor

    Maybe change the wording if you are in replace mode so that it is more obvious?

  4. added
    feature-request
    on Jul 5, 2016
  5. sandy081 commented on Jul 6, 2016

    @sandy081
    Member

    I am thinking of removing this no matches in both Search and Replace and introducing following behavior

    In Search results,

    • Editing a file so that it does not have any search results, will remove the file
    • Doing an undo will put it back in the results

    In Replace results

    • Replacing all entries in a file (one by one or using replace all on a file) removes the file
    • Doing an undo will put it back in the results

    Removing

    • File entry will not be added back if removed explicitly (Current behavior)
  6. bpasero commented on Jul 6, 2016

    @bpasero
    Contributor

    I like that 👍

  7. isidorn commented on Jul 6, 2016

    @isidorn
    Author

    Sounds good - would like to try it out before giving more feedback

  8. sandy081 commented on Jul 7, 2016

    @sandy081
    Member

    Pushed the changes, Feedback is welcome. Thanks.

  9. locked and limited conversation to collaborators on Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requestsearchux

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions