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: `` * `` |
|
| `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 | |
|
| `make_search_word_bounded` | Modify current search to make it word bounded | |
|
||||||
| `global_search` | Global search in workspace folder | normal: `` <space>/ ``, select: `` <space>/ `` |
|
| `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` | 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_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 | |
|
| `extend_line_above` | Select current line, if already selected, extend to previous line | |
|
||||||
|
|
|
@ -52,7 +52,6 @@ use helix_view::{
|
||||||
view::View,
|
view::View,
|
||||||
Document, DocumentId, Editor, ViewId,
|
Document, DocumentId, Editor, ViewId,
|
||||||
};
|
};
|
||||||
use tokio_stream::wrappers::UnboundedReceiverStream;
|
|
||||||
|
|
||||||
use anyhow::{anyhow, bail, ensure, Context as _};
|
use anyhow::{anyhow, bail, ensure, Context as _};
|
||||||
use insert::*;
|
use insert::*;
|
||||||
|
@ -3312,7 +3311,7 @@ fn buffer_picker(cx: &mut Context) {
|
||||||
PickerColumn::new("path", |meta: &BufferMeta, _| {
|
PickerColumn::new("path", |meta: &BufferMeta, _| {
|
||||||
// TODO: make this rust look like actual rust
|
// TODO: make this rust look like actual rust
|
||||||
if meta.is_refactor {
|
if meta.is_refactor {
|
||||||
return helix_view::document::REFACTOR_BUFFER_NAME.into();
|
return REFACTOR_BUFFER_NAME.into();
|
||||||
}
|
}
|
||||||
let path = meta
|
let path = meta
|
||||||
.path
|
.path
|
||||||
|
|
|
@ -13,7 +13,6 @@ use crate::{
|
||||||
EditorView,
|
EditorView,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
use crossterm::event::KeyEvent;
|
|
||||||
use futures_util::future::BoxFuture;
|
use futures_util::future::BoxFuture;
|
||||||
use helix_event::AsyncHook;
|
use helix_event::AsyncHook;
|
||||||
use nucleo::pattern::{CaseMatching, Normalization};
|
use nucleo::pattern::{CaseMatching, Normalization};
|
||||||
|
@ -30,10 +29,10 @@ use tui::{
|
||||||
use tui::widgets::Widget;
|
use tui::widgets::Widget;
|
||||||
|
|
||||||
use std::{
|
use std::{
|
||||||
borrow::{BorrowMut, Cow},
|
borrow::Cow,
|
||||||
collections::HashMap,
|
collections::HashMap,
|
||||||
io::Read,
|
io::Read,
|
||||||
path::{Path, PathBuf},
|
path::Path,
|
||||||
sync::{
|
sync::{
|
||||||
atomic::{self, AtomicUsize},
|
atomic::{self, AtomicUsize},
|
||||||
Arc,
|
Arc,
|
||||||
|
|
Loading…
Reference in New Issue