Skip to content

Commit

Permalink
feat(commands): open urls with goto_file command
Browse files Browse the repository at this point in the history
Add capability for `goto_file` command to open an URL under cursor.

Fixes: helix-editor#1472
Superseds: helix-editor#4398
  • Loading branch information
matoous committed Nov 21, 2023
1 parent 47b6c4b commit 7baa348
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions helix-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ log = "0.4"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
toml = "0.7"
url = "2.3.1"

imara-diff = "0.1.0"

Expand Down
1 change: 1 addition & 0 deletions helix-core/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
pub use encoding_rs as encoding;
pub use url;

pub mod auto_pairs;
pub mod chars;
Expand Down
2 changes: 1 addition & 1 deletion helix-view/src/document.rs
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ where
}

use helix_lsp::{lsp, Client, LanguageServerName};
use url::Url;
use helix_core::url::Url;

impl Document {
pub fn from(
Expand Down

0 comments on commit 7baa348

Please sign in to comment.