feat: ansi for pipe rows

This commit is contained in:
saeedark 2025-10-08 02:38:45 +03:30 committed by saeedark
parent 5587604469
commit 312b22300d
10 changed files with 566 additions and 23 deletions

View file

@ -132,6 +132,7 @@ static const char *const binding_action_map[] = {
[BIND_ACTION_PIPE_VIEW] = "pipe-visible",
[BIND_ACTION_PIPE_SELECTED] = "pipe-selected",
[BIND_ACTION_PIPE_COMMAND_OUTPUT] = "pipe-command-output",
[BIND_ACTION_TOGGLE_ANSI_SELECTION] = "toggle-ansi-selection",
[BIND_ACTION_SHOW_URLS_COPY] = "show-urls-copy",
[BIND_ACTION_SHOW_URLS_LAUNCH] = "show-urls-launch",
[BIND_ACTION_SHOW_URLS_PERSISTENT] = "show-urls-persistent",
@ -923,6 +924,9 @@ parse_section_main(struct context *ctx)
else if (streq(key, "app-id"))
return value_to_str(ctx, &conf->app_id);
else if (streq(key, "ansi-pipe"))
return value_to_bool(ctx, &conf->ansi_pipe);
else if (streq(key, "initial-window-size-pixels")) {
if (!value_to_dimensions(ctx, &conf->size.width, &conf->size.height))
return false;