Open file in Workspace by typing its name?
-
@PeterJones I checked it out again. You were right, it works… kinda but not exactly well:
-
It doesn’t allow me to specify which one is ROOT folder. The problem is that if I move into subfolder and perform a search, it will only look at that subfolder and folders below them. I would like it to always search in main (root) folder and below (project folder + subfolders).
-
In the plugins->explorer menu it shows ctrl+p but when I click ctrl+p, print menu pops up, instead of quick search (explorer).
If there would be a fix for 1) and 2) it would be perfect (like vscode ctrl+p).
-
-
I checked it out again.
I’m glad you didn’t dismiss it out of hand
- It doesn’t allow me to specify which one is ROOT folder.
That might be a good feature request for the owner of the plugin – their github repository should have an “Issues” section.
- In the plugins->explorer menu it shows ctrl+p but when I click ctrl+p, print menu pops up, instead of quick search (explorer).
This is easier for you: if you don’t want Notepad++ to use
Ctrl+P
for print, go to Settings > Shortcut Mapper, filter for print, and Clear the shortcut for thePrint...
entry.Once you have done that, the Plugin’s
Ctrl+P
shortcut will work.If there would be a fix for 1) and 2) it would be perfect (like vscode ctrl+p).
For 1, you will have to request it of the author/maintainer of the plugin; we fellow users in the Community cannot do that for you. For 2, just use the Shortcut Mapper as described above.
-
@PeterJones said in Open file in Workspace by typing its name?:
request for the owner of the plugin – their github repository should have an “Issues” section.
In the plugins->explorer menu it shows ctrl+p but w
Peter thank you very much for your help! I submitted a feature request but who knows if author will do it. It would be extremely useful if you could tell this plugin what should root folder be.
-
@Maxitrol-Mat said in Open file in Workspace by typing its name?:
I submitted a feature request but who knows if author will do it
Could youIn the future, please provide a link to that request, so that others who are interested in this discussion can see what happens with the request.Edit: I found it https://github.com/funap/npp-explorer-plugin/issues/57, but that’s not in the repo that Plugins Admin links to, which is what prompted my question below.
-
Is there a reason you linked to the https://github.com/funap/npp-explorer-plugin version of the plugin? That repo is at v1.8.2.24.
Notepad++ gets it from https://github.com/oviradoi/npp-explorer-plugin, which is at v1.9.9 .This means that even if the
funap
repo updates, @Maxitrol-Mat might not ever see it in Plugins Admin, because N++ will continue to grab fromoviradoi
. -
@PeterJones said in Open file in Workspace by typing its name?:
I found it https://github.com/funap/npp-explorer-plugin/issues/57
So when I looked at your request, I saw that you pinged funap again after a day or two of making your request.
I’m not sure that you understand how open source works: if the author is interested in implementing a feature request, they will get to it in their own time; most github projects are run by people with full-time jobs that aren’t coding whatever’s in that project, so they can only work on it in their free time. And even if they want to implement a feature, and have plenty of time to work on it, 1-2 days after a request is not a reasonable enough time to ping them if they’re going to work on it. (And if it were my project, and a requestor had started pestering me after so short a time, I would probably not take it kindly.) Have patience, but understand that not all feature requests ever get implemented. That’s the way of life in software (unless you have a paid contract that includes guaranteed feature-request implementation).
-
@PeterJones So how does one gets such a feature without writing it by himself? Are there other devs (Notepad++ users who can write plugins) who would look at this and do it?
-
@Maxitrol-Mat said in Open file in Workspace by typing its name?:
@PeterJones So how does one gets such a feature without writing it by himself? Are there other devs (Notepad++ users who can write plugins) who would look at this and do it?
You gets what you pays for. Either you have patience and hope that it will be implemented at some point, or you pay someone to write you the plugin you want, or you find another tool – paid or free – that does what you want. You cannot force people to customize a free tool to do exactly what you want, and you cannot demand that they do it for free on your timeline without burning a lot of bridges. Good luck.
-
@PeterJones said in Open file in Workspace by typing its name?:
Is there a reason you linked to the https://github.com/funap/npp-explorer-plugin version of the plugin? That repo is at v1.8.2.24
Yes, the Plugin Admin version does not have this feature of fuzzy file search. Plus I’ve found funap is more amendable to pull requests having submitted some quite some time ago to both repos and only funap responded and merged so I started using that Explorer version.
Cheers.
-
I don’t know what I did but it works now. I think you should not use plugin’s Explorer panel otherwise it won’t search from root folder. Instead of that I keep using “Folder as Workspace” and everything works as expected.
There is one problem; after I installed this “Explorer” dll (plugin), Notepad++ will freeze from time to time (every few minutes) and I can’t click anywhere. Even if I click menus on top, everything becomes white (submenu opens but no texts, just white background). It lasts for 5-10 seconds then Notepad++ becomes responsive again.
Do you think it has something to do with Explorer plugin? I have been using N++ for 20 years or so and I have never experienced this. I also removed all other plugins except this one. Is it possible that this plugin is causing it?
-
@Maxitrol-Mat
If the freezing didn’t happen before and it happens when Explorer and no other plugins are installed, it’s probably Explorer’s fault.I recommend you figure out what triggers the freezes and then submit an issue at the repo of whichever version you’re using.
-
@Mark-Olson said in Open file in Workspace by typing its name?:
hat triggers the freezes and then submit an issue at the repo of whichever ver
I don’t know how to find out what triggers freezing. I will uninstall the plugin and see.
I have been testing this for 2h now and there is one “bug”: if you create a new file in the folder, Explorer plugin won’t be aware of it unless you restart N++. It should automatically detect new/deleted files. Ok, I can post to Github and hopefully the dev will fix it.
-
@Maxitrol-Mat
My guess (completely unfounded, just based on my general sense of what that plugin does) would be that the freezes happen because the plugin does something that can potentially be very compute-intensive whenever a buffer is opened or closed, or when you switch to a different buffer. If that were the case, you would expect to see freezes whenever you change tabs or open/close a file.I would further speculate that the freezes might potentially have something to do with the opened file being in a directory that contains a lot of files and/or subdirectories. The way to test this would be to try opening a file in the root directory of a huge tree (e.g., Program Files, Documents) and see if that triggers a freeze, then compare to what happens when you open a file in a small directory tree.