-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Goto #8
Conversation
helix-term/src/commands.rs
Outdated
|
||
doc.mode = Mode::Normal; | ||
|
||
log::info!("{:?}", locations); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Drop this line.
helix-term/src/commands.rs
Outdated
locations, | ||
|item| { | ||
let file = item.uri.as_str(); | ||
let line = item.range.start.line.to_string(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let line = item.range.start.line;
helix-view/src/editor.rs
Outdated
@@ -55,7 +55,15 @@ impl Editor { | |||
} | |||
|
|||
let view = View::new(doc)?; | |||
self.tree.insert(view); | |||
let existing_view_option = self |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revert all of this.
At the start of the function:
let existing_view = self.tree.views().find(|(view, _)| view.doc.path() == Some(&path));
if let Some(view) = existing_view {
self.tree.focus = view.id;
return Ok(());
}
…e file when definition isnt in same file
* Add c-sharp sticky context queries Tested & works * fix `context.end` to `context.params` * accept suggestion Co-authored-by: Sora <s0la.luladust@gmail.com> --------- Co-authored-by: Sora <s0la.luladust@gmail.com>
No description provided.