forked from mirrors/jj
cli: move default editor (pico
) definition to config file
This commit is contained in:
parent
b2101d15c8
commit
32b07d6b79
2 changed files with 2 additions and 4 deletions
|
@ -2142,10 +2142,7 @@ pub fn get_new_config_file_path(
|
|||
}
|
||||
|
||||
pub fn run_ui_editor(settings: &UserSettings, edit_path: &PathBuf) -> Result<(), CommandError> {
|
||||
let editor: CommandNameAndArgs = settings
|
||||
.config()
|
||||
.get("ui.editor")
|
||||
.unwrap_or_else(|_| "pico".into());
|
||||
let editor: CommandNameAndArgs = settings.config().get("ui.editor").unwrap();
|
||||
let exit_status = editor
|
||||
.to_command()
|
||||
.arg(edit_path)
|
||||
|
|
|
@ -5,5 +5,6 @@
|
|||
# Placeholder: added by user
|
||||
|
||||
[ui]
|
||||
editor = "pico"
|
||||
pager = { command = ["less", "-FRX"], env = { LESSCHARSET = "utf-8" } }
|
||||
log-word-wrap = false
|
||||
|
|
Loading…
Reference in a new issue