Skip to content

Commit

Permalink
feat: use vim to set default desc
Browse files Browse the repository at this point in the history
  • Loading branch information
colinlienard committed Jan 3, 2024
1 parent f8cfb10 commit 99b36a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use home::home_dir;
use std::{fs, io::Error};
use std::{ffi::OsStr, fs, io::Error};

use colored::*;
use inquire::{validator::Validation, Confirm, Editor, InquireError, Text};
Expand Down Expand Up @@ -58,6 +58,7 @@ impl Config {
};
let desc = Editor::new("Pull request description")
.with_predefined_text(&actual)
.with_editor_command(OsStr::new("vim"))
.prompt_skippable()?;
let desc = match desc {
Some(desc) => {
Expand Down

0 comments on commit 99b36a3

Please sign in to comment.