Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tkapias opened this issue Aug 7, 2023 · 0 comments
Open

Comments

@tkapias
Copy link

tkapias commented Aug 7, 2023

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.

@tkapias tkapias changed the title Separator character (comma) for $ARGS confflict with custom options Separator character (comma) for $ARGS conflicts with custom options Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant