sublime_text icon indicating copy to clipboard operation
sublime_text copied to clipboard

Appending ,<project filters> makes it harder to edit find_in_folder path

Open mkj opened this issue 4 years ago • 3 comments

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]})

mkj avatar May 27 '21 02:05 mkj

        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.

deathaxe avatar May 27 '21 17:05 deathaxe

        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

xuzi123 avatar Jan 21 '22 07:01 xuzi123

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 each time

fischfood avatar Sep 26 '22 20:09 fischfood

Workaround: https://forum.sublimetext.com/t/project-filters-in-find-in-folder/60790/7

kitzberger avatar Oct 21 '22 18:10 kitzberger