Questions tagged [nppexec]
A console plugin for Notepad++ (NPP) that allows running scripts and simple DOS-like commands from within Notepad++
17
questions
3
votes
1
answer
552
views
How I can rename txt files according to first line of text file? [closed]
I have multiple .txt files and I want to rename them as first line text they contains.
First line in every text file is some number and text Example
ParagraphL23
I want my text file to be renamed as ...
0
votes
1
answer
530
views
Using NPP, is there a method to numerically sort values separated by commas (single column)?
I have a large JSON csv file of values (one column). In order to remove duplicates, I need to first Replace All CRs then use TextFX Sort Lines function, then Replace All the CRs with commas (such that ...
0
votes
2
answers
388
views
Notepad++ NppExec: Redirect to file using '>' registers it as an argument and does not work, even though it works on the command line
Looking at the code below, it simply converts a c or c++ file, e.g. main.cpp into its state after preprocessing, e.g. main_pp.cpp.
However, running the command it generates, g++ -E "main.cpp"...
1
vote
2
answers
1k
views
NppExec - How to Kill Process Automatically
I am coding python on Notepad++ and frequently use matplotlib. If I have a plot open and would like to rerun the code, an annoying dialog box comes up saying that:
"NppExec - WARNING - Console process ...
1
vote
1
answer
808
views
taskkill fails for process when run from Notepad++ plugin NppExec
I made a batch file that kills a couple tasks and restarts them like so:
taskkill /f /im "task1.exe"
taskkill /f /im task2.exe
start C:\path\task.exe
This bat file runs fine when run through a cmd ...
1
vote
1
answer
436
views
Error while compiling with 'g++' using 'NPPExec' plugin with Notepad++
Everytime I try to run G++ from notepad++ portable I get this error
I am trying to compile a simple hello world program.
I'm positive that the directories and files exist, but I still get this ...
1
vote
1
answer
1k
views
Notepad++ does not print to console from perl script
I have following perl script:
print "test: ";
my $input = <>;
print "result: ", $input;
I made NppExec command in Notepad++:
NPP_SAVE
perl "$(CURRENT_DIRECTORY)\$(FILE_NAME)"
When I run this ...
0
votes
1
answer
1k
views
How to make NppExec show script-created windows?
I am trying to run a Python script with NppExec. It runs fine (the console is updated with whatever I print to stdout in the script) but the window the script creates (through PyQt) never shows up. If ...
0
votes
1
answer
2k
views
How do I make NppExec open Git Bash in its own window?
I installed the NppExec plugin for Notepad++ to be able to run Git Bash from inside the application, but it runs the script within the built-in console in Notepad++. This makes the colors disappear, ...
1
vote
1
answer
2k
views
Error code 2 when compiling a cpp file in notepad++
I'm using this code
cd "$(CURRENT_DIRECTORY)"
g++ $(FILE_NAME) -o $(FILE_NAME).exe
to run a cpp from notepad. What I had expected to run was g++ FILE_NAME.cpp -o FILE_NAME.exe
But g++ FILE_NAME.cpp ...
8
votes
1
answer
10k
views
Using NppExec and Ruby to script a new macro feature for Notepad++
I work in U.S. and Europe, and switching between month/day (US) and day/month (EU) formats leads to ambiguities when looking through logs or notes (e.g. is 7/8/12 July 8th or 7th August?).
I'd like ...
0
votes
3
answers
5k
views
Running python / ruby interactively from within Notepad++ (NppExec console)
I've been using the NppExec console in Notepad to run python and ruby scripts using python script_name.py or ruby script_name.rb, and for the most part this works well: the output gets redirected into ...
1
vote
2
answers
3k
views
Running macro through NPPExec (Notepad++)
Is there a way to run a macro using NPPExec script in notepad++? Thank you very much for your help.
EDIT:
I have also tried to find the solution here and the NPPExec Manual that can be accessed ...
0
votes
0
answers
823
views
Implementing find and replace using NPPExec in Notepad++
How do we perform find and replace using NPPExec plugin in Notepad++? Any help (command/resource) in this regard will be greatly appreciated.
0
votes
1
answer
888
views
Sublime Text package similar to NppExec?
Anybody know of a package for Sublime Text 2 that will let me execute a shell command, save shell commands, run the currently-open file?
I miss the utility of NppExec from Notepad++, in which I would ...