Appending ,<project filters> makes it harder to edit find_in_folder path
Problem description
I often use find_in_folder then edit the Where to search a few directories above (a script bound to search the current file's dir, below). Because it now puts ,<project filters> at the end I can't just delete backwards, I have to navigate back before that.
/home/matt/src/buildroot/package/systemd,<project filters>
^ want to backspace here
Preferred solution
Maybe it isn't necessary to add the <project filters>? Or have another way to do a search of filtered files too, a checkbox? Not quite sure.
Additional Information (optional)
Build 4106
This is the script
import sublime, sublime_plugin
import os
class FindInCurrentFolderCommand(sublime_plugin.TextCommand):
def run(self, edit):
view = self.view
window = view.window()
current_dir = os.path.dirname(view.file_name())
window.run_command("find_in_folder", {"dirs": [current_dir]})
self.window.run_command(
"show_panel", {"panel": "find_in_files", "where": ", ".join(valid_paths)}
)
It's from FileManager plugin. It doesn't add the filter.
self.window.run_command( "show_panel", {"panel": "find_in_files", "where": ", ".join(valid_paths)} )It's from FileManager plugin. It doesn't add the filter.
I have the same problem with this guy. The default added "<project filters>" in "Where" box make some search failed. Only when I remove "<project filters>", I can find the results.
Could you please tell us how to remove "<project filters>" from "Where" box ? I didn't install FileManager plugin, by the way. But on my Mac and Ubuntu both have the "<project filters>" problem.
Other guy has the same problem: https://forum.sublimetext.com/t/folder-excluded-from-search-but-not-sure-why/52347
Has there been any update to this?
I recently switched from Sublime Text 2 to this, and I always just drag folders into Sublime in the dock. Now right clicking on the top level folder and running Find In Folder doesn't work unless I manually delete
Workaround: https://forum.sublimetext.com/t/project-filters-in-find-in-folder/60790/7