Fossil SCM

Add "jove" to the list of text editors that Fossil searches for if the "editor" setting and the VISUAL and EDITOR environment variables are not available.

drh 2025-03-19 11:08 trunk
Commit 486f81b931dea1a3d131c1c6b5d8a592ca17563e6b9891c684601417bca64a9d
2 files changed +1 -1 +2 -2
+1 -1
--- src/db.c
+++ src/db.c
@@ -4788,11 +4788,11 @@
47884788
** text editor command used for check-in comments.
47894789
**
47904790
** If this value is not set, then environment variables VISUAL and
47914791
** EDITOR are consulted, in that order. If neither of those are set,
47924792
** then a search is made for common text editors, including
4793
-** "notepad", "nano", "pico", "edit", "vi", "vim", and "ed".
4793
+** "notepad", "nano", "pico", "jove", "edit", "vi", "vim", and "ed".
47944794
**
47954795
** If this setting is false ("off", "no", "false", or "0") then no
47964796
** text editor is used.
47974797
*/
47984798
/*
47994799
--- src/db.c
+++ src/db.c
@@ -4788,11 +4788,11 @@
4788 ** text editor command used for check-in comments.
4789 **
4790 ** If this value is not set, then environment variables VISUAL and
4791 ** EDITOR are consulted, in that order. If neither of those are set,
4792 ** then a search is made for common text editors, including
4793 ** "notepad", "nano", "pico", "edit", "vi", "vim", and "ed".
4794 **
4795 ** If this setting is false ("off", "no", "false", or "0") then no
4796 ** text editor is used.
4797 */
4798 /*
4799
--- src/db.c
+++ src/db.c
@@ -4788,11 +4788,11 @@
4788 ** text editor command used for check-in comments.
4789 **
4790 ** If this value is not set, then environment variables VISUAL and
4791 ** EDITOR are consulted, in that order. If neither of those are set,
4792 ** then a search is made for common text editors, including
4793 ** "notepad", "nano", "pico", "jove", "edit", "vi", "vim", and "ed".
4794 **
4795 ** If this setting is false ("off", "no", "false", or "0") then no
4796 ** text editor is used.
4797 */
4798 /*
4799
+2 -2
--- src/util.c
+++ src/util.c
@@ -671,16 +671,16 @@
671671
** (1) The local "editor" setting
672672
** (2) The global "editor" setting
673673
** (3) The VISUAL environment variable
674674
** (4) The EDITOR environment variable
675675
** (5) Any of the following programs that are available:
676
-** notepad, nano, pico, edit, vi, vim, ed,
676
+** notepad, nano, pico, jove, edit, vi, vim, ed,
677677
*/
678678
const char *fossil_text_editor(void){
679679
const char *zEditor = db_get("editor", 0);
680680
const char *azStdEd[] = {
681
- "notepad", "nano", "pico", "edit", "vi", "vim", "ed"
681
+ "notepad", "nano", "pico", "jove", "edit", "vi", "vim", "ed"
682682
};
683683
int i = 0;
684684
if( zEditor==0 ){
685685
zEditor = fossil_getenv("VISUAL");
686686
}
687687
--- src/util.c
+++ src/util.c
@@ -671,16 +671,16 @@
671 ** (1) The local "editor" setting
672 ** (2) The global "editor" setting
673 ** (3) The VISUAL environment variable
674 ** (4) The EDITOR environment variable
675 ** (5) Any of the following programs that are available:
676 ** notepad, nano, pico, edit, vi, vim, ed,
677 */
678 const char *fossil_text_editor(void){
679 const char *zEditor = db_get("editor", 0);
680 const char *azStdEd[] = {
681 "notepad", "nano", "pico", "edit", "vi", "vim", "ed"
682 };
683 int i = 0;
684 if( zEditor==0 ){
685 zEditor = fossil_getenv("VISUAL");
686 }
687
--- src/util.c
+++ src/util.c
@@ -671,16 +671,16 @@
671 ** (1) The local "editor" setting
672 ** (2) The global "editor" setting
673 ** (3) The VISUAL environment variable
674 ** (4) The EDITOR environment variable
675 ** (5) Any of the following programs that are available:
676 ** notepad, nano, pico, jove, edit, vi, vim, ed,
677 */
678 const char *fossil_text_editor(void){
679 const char *zEditor = db_get("editor", 0);
680 const char *azStdEd[] = {
681 "notepad", "nano", "pico", "jove", "edit", "vi", "vim", "ed"
682 };
683 int i = 0;
684 if( zEditor==0 ){
685 zEditor = fossil_getenv("VISUAL");
686 }
687

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button