Skip to content

Commit

Permalink
include editor
Browse files Browse the repository at this point in the history
  • Loading branch information
RasmusLindroth committed Jan 7, 2023
1 parent 28d6e53 commit bfa50c5
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config.example.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Configuration file for tut

[general]
# What editor to use. TUT_USE_INTERNAL will use the editor that comes with tut.
# If you want you can set this to $EDITOR to use your environment variable or
# vim if you want to specify the program directly.
# default="TUT_USE_INTERNAL"
editor="TUT_USE_INTERNAL"

# You need to press yes in a confirmation dialog before favoriting, boosting,
# etc.
# valid: true, false
Expand Down
6 changes: 6 additions & 0 deletions config/default_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ package config
var conftext = `# Configuration file for tut
[general]
# What editor to use. TUT_USE_INTERNAL will use the editor that comes with tut.
# If you want you can set this to $EDITOR to use your environment variable or
# vim if you want to specify the program directly.
# default="TUT_USE_INTERNAL"
editor="TUT_USE_INTERNAL"
# You need to press yes in a confirmation dialog before favoriting, boosting,
# etc.
# valid: true, false
Expand Down
10 changes: 10 additions & 0 deletions docs/man/tut.5
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,16 @@ The last line under each options shows the default value.
.SH GENERAL
.PP
This section is [general] in your configuration file
.SS editor
.PP
What editor to use.
TUT_USE_INTERNAL will use the editor that comes with tut.
If you want you can set this to $EDITOR to use your environment variable
or vim if you want to specify the program directly.
.PD 0
.P
.PD
\f[B]editor\f[R]=\f[I]\[lq]TUT_USE_INTERNAL\[rq]\f[R]
.SS confirmation
.PP
You need to press yes in a confirmation dialog before favoriting,
Expand Down
4 changes: 4 additions & 0 deletions docs/man/tut.5.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ Under each section there is the name of the configuration option. The last line
# GENERAL
This section is \[general\] in your configuration file

## editor
What editor to use. TUT_USE_INTERNAL will use the editor that comes with tut. If you want you can set this to $EDITOR to use your environment variable or vim if you want to specify the program directly.
**editor**=*"TUT_USE_INTERNAL"*

## confirmation
You need to press yes in a confirmation dialog before favoriting, boosting, etc.

Expand Down

0 comments on commit bfa50c5

Please sign in to comment.