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

Use semicolon as file path separator for lua_load #2154

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Caellian
Copy link
Collaborator

@Caellian Caellian commented Feb 3, 2025

lua_load previously expected space separated list of file names.

As spaces in file names do happen even to most experienced GNU+Linux users, I made lua_load handle ; separators on top of space separators.

Basically, if string contains ;, new logic will be used, if not, old logic will be used. Additionally, empty paths are skipped.
This allows for values like ./my file has spaces.lua; which would've been impossible to load previously.

As the fallback is space separator, this shouldn't break existing configs that use multiple files already. I added a TODO for 2028 to remove the branch for old behavior.

Lastly, previous code did a lot of copies and moves, new code doesn't.

@github-actions github-actions bot added documentation suggests documentation changes or improvements sources PR modifies project sources lua related to Lua integration in conky labels Feb 3, 2025
Copy link

netlify bot commented Feb 3, 2025

Deploy Preview for conkyweb ready!

Name Link
🔨 Latest commit 5b95330
🔍 Latest deploy log https://app.netlify.com/sites/conkyweb/deploys/67a0370ec2692f0008a94245
😎 Deploy Preview https://deploy-preview-2154--conkyweb.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@Caellian Caellian added enhancement suggests alteration of existing functionality to better support different use cases documentation suggests documentation changes or improvements sources PR modifies project sources and removed documentation suggests documentation changes or improvements sources PR modifies project sources labels Feb 3, 2025
@Caellian Caellian requested a review from brndnmtthws February 3, 2025 03:22
@Caellian Caellian force-pushed the fix/lua-load-separator branch from d52a0fd to f9a3134 Compare February 3, 2025 03:23
@Caellian Caellian force-pushed the fix/lua-load-separator branch from f9a3134 to 5b95330 Compare February 3, 2025 03:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation suggests documentation changes or improvements enhancement suggests alteration of existing functionality to better support different use cases lua related to Lua integration in conky sources PR modifies project sources
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant