Skip to content

[Feature Request]: Launch arguments to open the library with a specific search #1148

@TrigamDev

Description

@TrigamDev

Checklist

  • I am using an up-to-date version.
  • I have read the documentation.
  • I have searched existing issues.

Description

It would be really useful to have a launch arguments for opening a library with a specific search.

Solution

Add a handful of launch arguments to control the search a library is opened with (in context of using the --open argument)

  • --query <query>: The query to use, instead of a blank query
  • --sort <sort mode>: The sorting mode to use, instead of Date Added (or the previously used one, when functionality is added for saving the previous search settings)
  • --sort-direction: The sorting direction to use, instead of Descending (or the previously used one)
  • --exclude-hidden-entries: Whether to exclude hidden entries (feat: add hidden tags #1139)

Once functionality is added for the library saving the search state between sessions, this will be made less useful, but still useful nonetheless.
For example, you could save shortcuts for opening the library with different queries, which could be help speed up workflows. It could also be really useful to have a primary shortcut to your library that initializes it with a query to exclude personal or sensitive files (admittedly, this example would be solved by #1139, but still).

Alternatives

There's no alternative, as the library will always open with an empty query, sorting mode set to Date Added, and sorting direction set to Descending.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: EnhancementNew feature or requestType: InstallationInstalling, building, and/or launching the program

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions