From 8744502cbe42c98422a798c06f4c8ce033725412 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Mon, 16 Sep 2024 22:30:35 +0200 Subject: 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. --- src/core-commands.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/core-commands.c') 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. -- cgit v1.2.3