"Open current dir" is indeed a handy equivalent to !ls, but is there any one-click way/single command to run a dir command on the current directory and open the results in a N++ window? My [usual] apologies if I'm asking an obsolete question – still stuck with 5.8.5 on this corporate PC.
This is how I would do it with the NppExec plugin: Hit F6 for the NppExec prompt, make sure it says "temporary script" on the lower left, and type
cmd /c CD "$(CURRENT_DIRECTORY)" && DIR > output.txt
If everything works as expected, hit F6 again, click "Save" and save the snippet under some descriptive name. Optionally, add a keyboard shortcut via settings/keyboard.
This has two minor drawbacks: (a) It will clutter your drive with output.txt files over time if you don't delete them. (b) Existing output.txt files will be overwritten without prompting.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.