mirror of https://github.com/helix-editor/helix
style: misc nits
parent
627885ddeb
commit
a6105af282
|
@ -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: `` <space>/ ``, select: `` <space>/ `` |
|
||||
| `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 | |
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue