I set Notepad++ to be called from command-line. I would like it to open file browser in current folder from which it was called so that I could work with files in that folder. Is there any way to do this; any suggestions, ideas how to go about it? Textmate has this feature, which is very convenient.

[edit] To clarify, I was looking to get this from explorer plugin that open on the side. I don't see any option in the config. Maybe it can't be done, I was hoping someone might know more. [/edit]

Thanks in advance for your input.

link|improve this question
7  
Not programming, belongs on superuser. – leppie Jan 12 '11 at 10:46
feedback

migrated from stackoverflow.com Aug 1 '11 at 4:57

This question came from our site for professional and enthusiast programmers.

4 Answers

up vote 1 down vote accepted

I just checked my installation of Notepad++. When I invoke it via the command-line I am able to have it open the current folder for file saves/opens. How are you invoking Notepad++ from the command-line? What I have done is, append C:\Program Files\Notepad++ to the PATH variable.

link|improve this answer
I meant the explorer window on the side that you can have open, it is bundled with notepad++ as a dll, if this works for you, then I get something messed up here, which is great because it would mean it works – Zeljko Dakic Jul 1 '09 at 4:26
feedback

I also tried to have the explorer plugin follow current dir. But this option does not seem to be available. I think the closest you can get is through a combination of key shortcut. What I suggest is:

Initial Configuration

  1. Map the "Current Dir. Path to Clipboard" to a combination of your choice say: Ctrl+Shift+Spacebar
  2. Do a similar binding for the Explorer plugin command "Go to Path...": Ctrl+Shift+P

Usage scenario:

  1. Ctrl+Shift+Spacebar
  2. Ctrl+Shift+P
  3. Paste (using ubiquitous Ctrl-V)
  4. Enter.

This can be done fairly fast, when you need it.

Hope this helps.

link|improve this answer
feedback

I thought it already does this?

I opened cmd, navigated to Desktop, ran "C:\Program Files\Notepad++\notepad++.exe", and the defaulted folder was 'Desktop'. I've changed the current commandprompt dir and then called notepad++ again, and it changes with the directory change.

link|improve this answer
feedback

I was just facing the same problem and was unsatisfied with the solution above. This link shows the better way, imho. http://leesongj.com/?p=8

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.