Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .