Skip to content
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

Merged
merged 16 commits into from
Mar 16, 2021
Merged

Goto #8

merged 16 commits into from
Mar 16, 2021

Conversation

janhrastnik
Copy link
Contributor

No description provided.


doc.mode = Mode::Normal;

log::info!("{:?}", locations);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Drop this line.

locations,
|item| {
let file = item.uri.as_str();
let line = item.range.start.line.to_string();
Copy link
Member

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;

@@ -55,7 +55,15 @@ impl Editor {
}

let view = View::new(doc)?;
self.tree.insert(view);
let existing_view_option = self
Copy link
Member

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(());
}

@archseer archseer merged commit 8dc0b18 into master Mar 16, 2021
@archseer archseer deleted the gd branch March 16, 2021 14:09
lazytanuki pushed a commit to lazytanuki/helix that referenced this pull request Jun 2, 2024
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants