Skip to content

Feature: query based "magic" folders #17122

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

Open
alshdavid opened this issue May 12, 2025 · 1 comment
Open

Feature: query based "magic" folders #17122

alshdavid opened this issue May 12, 2025 · 1 comment

Comments

@alshdavid
Copy link

alshdavid commented May 12, 2025

What feature or improvement do you think would benefit Files?

Say I have a "source" folder with documents that I have manually added metadata to categorize

/mydir/
  /more-docs
      more-doc1.txt
      more-doc2.txt
  doc1.txt
  doc2.txt
  doc3.txt

I'd love the ability to query a source folder to filter files against that metadata and, crucially, create "magic" folders that encapsulate/shortcut those queries where the contents of those folders represent the queried files.

This would also necessitate a simple interface to edit a file's metadata.

Examples of use cases are;

  • Viewing music against genre, artist, date (or other arbitrary tags)
  • Viewing videos against genre, director, actors, year, etc

Example

I would store my source files in a /source folder and create "query based magic folders" next to it;

/source
  /video1/video1.mp4
  /video2/video2.mp4

 # SELECT "**/*" FROM "./source" GROUP BY director
/by-director
  /foo
    video1.mp4 -> ../../source/video1.mp4
  /bar
    video2.mp4

 # SELECT "**/*" FROM "./source" GROUP BY genre
/by-genre
  /action
    video1.mp4 -> ../../source/video1.mp4
  /adventure
    video2.mp4

Note: the query syntax is just an example as it needs to be a richer to accommodate concepts like creating sub folders, grouping associated files together, search by content hash, etc.

Requirements

  • Creating a "magic" folder whose contents are a representation of a search query

Files Version

0.0.0

Windows Version

11

Comments

I guess I could implement this outside of Files as a CLI tool (or daemon service) that generates symlinks from a supplied query, but it would be cool to have

@yaira2
Copy link
Member

yaira2 commented May 12, 2025

Thank you for your feedback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🆕 New
Development

No branches or pull requests

2 participants