Skip to content

[Report] root/community/* tiddlers cause problems if FileSystemPaths filters are used #9817

@pmario

Description

@pmario

To reproduce

  • Create tiddler: $:/config/FileSystemPaths
  • Add filter [tag[Community]addprefix[community/]]
  • Edit tiddler Community Cards
  • Save -> issue

  • Community Cards is originally part of root/community/docs/
  • It is deleted there -> Issue
  • It is saved at editions/tw5.com/tiddlers/community/

Moving root/community/ directory into an editions/_tw-shared/tiddlers/community/ has the same problem,
because $:/config/FileSystemPaths takes precedence.


edtions/tw5.com/_tw_shared has the same problem

eg: edtions/tw.org includes _tw_shared using tw.org/tiddlers/_tw_shared/tiddlywiki.files with this content

{
	"directories": [
		"../../../tw5.com/tiddlers/_tw_shared"
	]
}
  • eg: Motovun Jack.svg has a tag: Picture
  • If there is a [tag[Picture]addprefix[images/]] in FileSystemPaths and
  • Motovun Jack.svg meta data is changed, it will be saved "locally"
    • This may or may not be a problem.

But deleting Motovun Jack.svg from its origin is a problem


Proposal

Investing a lot of time to make tw5.com work with $:/config/FileSystemPaths, I think the right thing to do is:

  • Create a new flag for tiddlywiki.files named: pinFilepath
  • pinFilePath takes precedence over configurations in FileSystemPaths

I do have a proof of concept, that I use for the FileSystemPaths experiments.

  • I am not sure if it catches all edge cases
  • I am not sure if it has other side effects

But it works quite well for me at the moment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions