Skip to content

Commit

Permalink
link from iterm2 faq to relevant issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Canop committed Nov 16, 2024
1 parent ba41f0e commit db0fd94
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/verb/verb_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -567,15 +567,15 @@ impl VerbStore {
prefix: &str,
sel_info: SelInfo<'_>,
panel_state_type: Option<PanelStateType>,
) -> PrefixSearchResult<'v, &Verb> {
) -> PrefixSearchResult<'v, &'v Verb> {
self.search(prefix, Some(sel_info), true, panel_state_type)
}

pub fn search_prefix<'v>(
&'v self,
prefix: &str,
panel_state_type: Option<PanelStateType>,
) -> PrefixSearchResult<'v, &Verb> {
) -> PrefixSearchResult<'v, &'v Verb> {
self.search(prefix, None, true, panel_state_type)
}

Expand All @@ -599,7 +599,7 @@ impl VerbStore {
sel_info: Option<SelInfo>,
short_circuit: bool,
panel_state_type: Option<PanelStateType>,
) -> PrefixSearchResult<'v, &Verb> {
) -> PrefixSearchResult<'v, &'v Verb> {
let mut found_index = 0;
let mut nb_found = 0;
let mut completions: Vec<&str> = Vec::new();
Expand Down
2 changes: 2 additions & 0 deletions website/docs/common-problems.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ Go to *Preferences->Profiles->Default->Keys* and add a mapping that maps `⌥Ret

Note that this will change the behavior of `alt+enter` for all terminal windows, and it will no longer send the `return` sequence.

* [relevant issue](https://github.com/Canop/broot/issues/682)

**Remap in Broot**

If a shortcut isn't available for broot and you can't or don't want to remap the one of your terminal, the solution is to change the shortcut in broot.
Expand Down

0 comments on commit db0fd94

Please sign in to comment.