diff --git a/book/src/generated/static-cmd.md b/book/src/generated/static-cmd.md index 7ecb7f4e8..b971482dd 100644 --- a/book/src/generated/static-cmd.md +++ b/book/src/generated/static-cmd.md @@ -80,6 +80,7 @@ | `search_selection_detect_word_boundaries` | Use current selection as the search pattern, automatically wrapping with `\b` on word boundaries | normal: `` * ``, select: `` * `` | | `make_search_word_bounded` | Modify current search to make it word bounded | | | `global_search` | Global search in workspace folder | normal: `` / ``, select: `` / `` | +| `global_refactor` | Global refactoring in workspace folder | | | `extend_line` | Select current line, if already selected, extend to another line based on the anchor | | | `extend_line_below` | Select current line, if already selected, extend to next line | normal: `` x ``, select: `` x `` | | `extend_line_above` | Select current line, if already selected, extend to previous line | | diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index dffd336d8..e1308231f 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -52,7 +52,6 @@ use helix_view::{ view::View, Document, DocumentId, Editor, ViewId, }; -use tokio_stream::wrappers::UnboundedReceiverStream; use anyhow::{anyhow, bail, ensure, Context as _}; use insert::*; @@ -3312,7 +3311,7 @@ fn buffer_picker(cx: &mut Context) { PickerColumn::new("path", |meta: &BufferMeta, _| { // TODO: make this rust look like actual rust if meta.is_refactor { - return helix_view::document::REFACTOR_BUFFER_NAME.into(); + return REFACTOR_BUFFER_NAME.into(); } let path = meta .path diff --git a/helix-term/src/ui/picker.rs b/helix-term/src/ui/picker.rs index 9685348ae..5801fbea6 100644 --- a/helix-term/src/ui/picker.rs +++ b/helix-term/src/ui/picker.rs @@ -13,7 +13,6 @@ use crate::{ EditorView, }, }; -use crossterm::event::KeyEvent; use futures_util::future::BoxFuture; use helix_event::AsyncHook; use nucleo::pattern::{CaseMatching, Normalization}; @@ -30,10 +29,10 @@ use tui::{ use tui::widgets::Widget; use std::{ - borrow::{BorrowMut, Cow}, + borrow::Cow, collections::HashMap, io::Read, - path::{Path, PathBuf}, + path::Path, sync::{ atomic::{self, AtomicUsize}, Arc,