Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question

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

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

    
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. –  glasnt Jul 1 '09 at 4:03

3 Answers 3

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.

share|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

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.

share|improve this answer

I was just facing the same problem and was unsatisfied with the solution above. From here:

  • First, open the run dialog (Run menu or F5).
  • Type “explorer $(CURRENT_DIRECTORY)”.
  • Click Save.. to map this with your fav accelerator key – and that’s it.
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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