Sublime Forum

[Feature-request] Mounted network directory. Quicker «Find in files» by using remote grep

#1

Hello,

I have been a registered user for a few years now. I use Sublime Text in Linux (Debian) environments where the files that I work on are always on a remote server which I access over the internet via a secured VPN. Unfortunately, a quick connection is not always available for me.

I find «Find in files» sluggish in this environment. I’ve tried it on local files, and it is lightning fast. This leads me to think that there is a lot of network traffic involved, that Sublime will read the files and look for the string that is being searched for, of that a grep is run locally over the mounted remote folder. Am I correct? If so, would it be possible to run the “grep” command on the server and show its results? This would significantly cut down the time it takes to search over remote files. And in doing so it would improve my life, as I often find myself waiting for «Find in files» to end.

And while we’re at it, can I suggest that:
a) «Find in files» to show a progress indicator. This would be a good first step.
b) «Search and replace» within «Find in files» shows a progress indicator, or at least an indication that the button has indeed been pressed.

Thank you. Keep up the good work!!!

0 Likes

#2

You are absolutely right about how Find in Files works in ST. It needs to read file content.

ST is a local first editor designed to quickly and efficiently work with local files and folders.

Hence it is not built with a client-server architecture, to keep complexity “low”. Running parts of the editor’s logic remotely, like VS Code dev containers or Zed’s remote editing, is therefore not possible, at the moment.

2 Likes