diff options
-rw-r--r-- | resources/default-conf/verbs.hjson | 16 | ||||
-rw-r--r-- | src/conf/conf.rs | 3 |
2 files changed, 11 insertions, 8 deletions
diff --git a/resources/default-conf/verbs.hjson b/resources/default-conf/verbs.hjson index 3cc533a..905ac33 100644 --- a/resources/default-conf/verbs.hjson +++ b/resources/default-conf/verbs.hjson @@ -25,22 +25,24 @@ verbs: [ # can customize. # If $EDITOR isn't set on your computer, you should either set it using # something similar to - # export EDITOR=/usr/local/bin/nvim + # export EDITOR=/usr/local/bin/nvim # or just replace it with your editor of choice in the 'execution' # pattern. - # If your editor is able to open a file on a specific line, use {line} - # so that you may jump directly at the right line from a preview. - # Example: - # execution: nvim +{line} {file} + # If your editor is able to open a file on a specific line, use {line} + # so that you may jump directly at the right line from a preview or + # a content search. + # Examples depending on your favourite editor: + # execution: "nvim +{line} {file}" + # execution: "helix {file}:{line}" { invocation: edit shortcut: e - execution: "$EDITOR +{line} {file}" + execution: "$EDITOR {file}" leave_broot: false } # A convenient shortcut to create new text files in - # the current directory or below + # the current directory or below { invocation: create {subpath} execution: "$EDITOR {directory}/{subpath}" diff --git a/src/conf/conf.rs b/src/conf/conf.rs index 717594e..e6b80c2 100644 --- a/src/conf/conf.rs +++ b/src/conf/conf.rs @@ -139,7 +139,8 @@ impl Conf { &conf_dir, Attribute::Reset, ); - println!("You should have a look at them."); + println!("You should have a look at them: their comments will help you configure broot."); + println!("You should especially set up your favourite editor in verbs.hjson."); } let mut conf = Conf::default(); conf.read_file(conf_filepath)?; |