Skip to content
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

global_search: Save only the primary query to the history register #11216

Merged
merged 1 commit into from
Jul 18, 2024

Commits on Jul 17, 2024

  1. global_search: Save only the primary query to the history register

    Two changes from the parent commit:
    
    * Save only the `Picker::primary_query` - so you don't save other parts
      of the query, for example `%path foo.rs` while in `global_search`.
    * Move the saving out of the `if let Some(option) = self.selection()`
      block. So when you hit enter you save to history whether you have a
      selection or not. If you want to close the picker without saving to
      the register you can use C-c or Esc instead.
    the-mikedavis committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    67da018 View commit details
    Browse the repository at this point in the history