about summary refs log tree commit diff stats
path: root/src/config/preferences.c
diff options
context:
space:
mode:
authorStefan <stefan@devlug.de>2021-04-11 16:21:00 +0200
committerMichael Vetter <jubalh@iodoru.org>2021-04-16 18:04:03 +0200
commit9f32b2afb264a7621a8ac660a84e2d72a4a1a44a (patch)
treed4c4351882311374e5da2b0b73770ce7d11628cf /src/config/preferences.c
parent35b0b0f19479436d980ef20bfe2ff26a0a19f9ea (diff)
downloadprofani-tty-9f32b2afb264a7621a8ac660a84e2d72a4a1a44a.tar.gz
Editor: Using preferences compose.editor
compose.editor is the path to the executable ( default /usr/bin/vim )
Diffstat (limited to 'src/config/preferences.c')
-rw-r--r--src/config/preferences.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/config/preferences.c b/src/config/preferences.c
index f09cb746..a11a5d42 100644
--- a/src/config/preferences.c
+++ b/src/config/preferences.c
@@ -1868,6 +1868,7 @@ _get_group(preference_t pref)
     case PREF_TITLEBAR_MUC_TITLE_JID:
     case PREF_TITLEBAR_MUC_TITLE_NAME:
     case PREF_SLASH_GUARD:
+    case PREF_COMPOSE_EDITOR:
         return PREF_GROUP_UI;
     case PREF_STATES:
     case PREF_OUTTYPE:
@@ -2189,6 +2190,8 @@ _get_key(preference_t pref)
         return "url.open.cmd";
     case PREF_URL_SAVE_CMD:
         return "url.save.cmd";
+    case PREF_COMPOSE_EDITOR:
+        return "compose.editor";
     default:
         return NULL;
     }
@@ -2326,6 +2329,8 @@ _get_default_string(preference_t pref)
         return "xdg-open";
     case PREF_URL_OPEN_CMD:
         return "xdg-open %u";
+    case PREF_COMPOSE_EDITOR:
+        return "/usr/bin/vim";
     case PREF_URL_SAVE_CMD:
         return NULL; // Default to built-in method.
     default: