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

[BUG] User Defined Filter Operators Using Functions Do Not Work When Used in Filter Expression in FileSystemPaths #8561

Open
kookma opened this issue Aug 28, 2024 · 5 comments

Comments

@kookma
Copy link
Contributor

kookma commented Aug 28, 2024

Describe the bug

Filter expressions in $:/config/FileSystemPaths if use custom filter operators will not work.

Expected behavior

I defined a custom function in a tiddler tagged with $:/tags/Global

\function move.to.tasks()  [tag[task]!tag[done]addprefix[tasks/]

Then in the $:/config/FileSystemPaths I used a filter like below

[has[title]move.to.tasks[]]

It not only does not work, but also makes none of other filter expression to run!

TiddlyWiki Configuration

  • TiddlyWiki 5.3.5
  • Edge 128
@saqimtiaz
Copy link
Member

Globals are not available in the evaluation of file system paths.

@kookma
Copy link
Contributor Author

kookma commented Aug 28, 2024

Is it true for $:/tags/Macro? or other tiddler names? like [preifx{myTiddler}]?

@kookma kookma changed the title [BUG] Functions Does Not Work When Used as Filter Operator in FileSystemPaths [BUG] User Defined Filter Operators Using Functions Do Not Work When Used in Filter Expression in FileSystemPaths Aug 28, 2024
@saqimtiaz
Copy link
Member

All global variables are not available when evaluating $:/config/FileSystemPaths

@kookma
Copy link
Contributor Author

kookma commented Aug 28, 2024

Thank you for clarification! I keep this open as a hint for other potential users.

@saqimtiaz
Copy link
Member

@kookma I think that we should try and resolve this by providing support for globals in file system path filters. See #8544

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

2 participants