moonraker icon indicating copy to clipboard operation
moonraker copied to clipboard

Find in files

Open marcellomaia opened this issue 2 years ago • 0 comments

Is your feature request related to a problem? Please describe

Given the current tendency of splitting the printer.cfg in several files it can get difficult to find where a given macro was defined. A find in files feature would really be helpfull and could be implemented on mainsail or fluidd after the implementation on the api.

Describe the solution you'd like

An endpoint on the file_manager like /server/files/find with the text to look for as a parameter and return the list of files and if possible with the matches found (position on the file). A limit of matches should exists to avoid queries not restrictive enough.

Describe alternatives you've considered

Get the file list and download all files on the client to search for the match. Although doable it’s far from ideal since all file matches would have to be downloaded in order to look for the mach on the client browser.

Additional information

No response

marcellomaia avatar Jan 30 '23 22:01 marcellomaia