Skip to content

Add save feature for search criteria #1977

@cvoorhees15

Description

@cvoorhees15

Could fd use some type of file to store/access saved search criteria? I didn't see an existing "save" style feature.

I'm imagining an option -w <name> / --write <name> which writes search criteria to the file when appended to the end of a valid fd command.

  • Ex: fd -e cpp -e cxx -e h -e hpp -w cpp src files

The <name> would allow the user to use another option -r <name> / --read <name> to lookup the saved search criteria and execute it.

  • Ex: fd -r cpp src files, same as executing fd -e cpp -e cxx -e h -e hpp

The file itself could just be a simple txt file, but maybe using something like json would make it easier to work with using some crate for easy parsing.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions