aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core-commands.c
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2024-09-16 22:30:35 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2024-09-16 22:30:35 +0200
commit8744502cbe42c98422a798c06f4c8ce033725412 (patch)
tree58141e513fa0a066944be0229cfa3c649f934f8d /src/core-commands.c
parentbc859a06a13b24daea12d35df2a1ec5114b42180 (diff)
downloadsciteco-8744502cbe42c98422a798c06f4c8ce033725412.tar.gz
Curses: added support for cool Unicode icons (refs #5)
* Practically requires one of the "Nerd Font" fonts, so it's disabled by default. Add 0,512ED to the profile to enable them. * The new ED flag could be used to control Gtk icons as well, but they are left always-enabled for the time being. Is there any reason anybody would like to disable icons in Gtk? * The list of icons has been adapted and extended from exa: https://github.com/ogham/exa/blob/master/src/output/icons.rs * The icons are hardcoded as presorted lists, so we can binary search them. This could change in the future. If there is any demand, they could be made configurable via Q-Registers as well.
Diffstat (limited to 'src/core-commands.c')
-rw-r--r--src/core-commands.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core-commands.c b/src/core-commands.c
index c5c60a8..fb8f142 100644
--- a/src/core-commands.c
+++ b/src/core-commands.c
@@ -2065,6 +2065,11 @@ teco_state_ecommand_close(teco_machine_main_t *ctx, GError **error)
* Should only be enabled if XTerm allows the
* \fIGetSelection\fP and \fISetSelection\fP window
* operations.
+ * - 512: Enable/Disable Unicode icons in the Curses UI.
+ * This requires a capable font, like the ones provided
+ * by the \(lqNerd Fonts\(rq project.
+ * Changes to this flag in interactive mode may not become
+ * effective immediately.
*
* The features controlled thus are discribed in other sections
* of this manual.