Skip to content

Separator character (comma) for $ARGS conflicts with custom options #44

Description

@tkapias

I use this plugin by replacing tree with lsd and modified less options (to display NerdFonts icons).

lsd --all --icon always --color always --size default --long --blocks size,name | tail +3
sh -c "LESSUTFCHARDEF=23fb-23fe:p,2665:p,26a1:p,2b58:p,e000-e00a:p,e0a0-e0a2:p,e0a3:p,e0b0-e0b3:p,e0b4-e0c8:p,e0ca:p,e0cc-e0d4:p,e200-e2a9:p,e300-e3e3:p,e5fa-e6a6:p,e700-e7c5:p,ea60-ebeb:p,f000-f2e0:p,f300-f32f:p,f400-f532:p,f500-fd46:p,f0001-f1af0:p less -R -L -Q -X -S --tilde"

image

ISSUE

The command lines for lsd and less include some options with listed args separated by commas, tmux-sidebar will fail because it uses comma separators in its global variables.

SOLUTION

Everything related to $ARGS in sidebar.tmux, scripts/helpers.sh and scripts/variables.sh uses comma as a separator and it should be replaced with another character. I use underscores because I know that I will not use any in those commands.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions