diff options
author | Joe | 2022-03-09 18:34:12 +0000 |
---|---|---|
committer | GitHub | 2022-03-09 18:34:12 +0000 |
commit | 8d7a25b4d49ef5cd7f5d85585d60e52bdc2bc0c5 (patch) | |
tree | bcac808dbb22a0f7931382190a809524ec28bfe6 /helix-term/src/application.rs | |
parent | 3f603b27f1251cb77462d350d3f8277546b765de (diff) |
Add --edit-config flag to directly open config.toml (#1771)
Co-authored-by: Gokul Soumya <gokulps15@gmail.com>
Diffstat (limited to 'helix-term/src/application.rs')
-rw-r--r-- | helix-term/src/application.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs index 3eee3396..e885bc49 100644 --- a/helix-term/src/application.rs +++ b/helix-term/src/application.rs @@ -113,6 +113,9 @@ impl Application { editor.open(path, Action::VerticalSplit)?; // Unset path to prevent accidentally saving to the original tutor file. doc_mut!(editor).set_path(None)?; + } else if args.edit_config { + let path = conf_dir.join("config.toml"); + editor.open(path, Action::VerticalSplit)?; } else if !args.files.is_empty() { let first = &args.files[0].0; // we know it's not empty if first.is_dir() { |