Comments (12)
This change is already in https://github.com/d0vgan/nppexec/tree/develop , please feel free to check.
from nppexec.
The added feature is this one:
the message "==== READY ====" is optional now (npe_console p-)
from nppexec.
Currently it's not possible (i.e. the message "=== READY ===" can not be turned off).
At the level of the source code, there are 2 places responsible for this message to appear at the end of NppExec's script. Search for "================ READY ================" in the source file "NppExecCommandExecutor.cpp". Some condition can be introduced to turn it on/off. For example, it could be something similar to
if ( pNppExec->GetOptions().GetBool(OPTB_CONSOLE_MSGREADY) )
{
pNppExec->GetConsole().PrintMessage( _T("================ READY ================"), false );
}
where OPTB_CONSOLE_MSGREADY
needs to be added to the enum EPluginOptions
(in NppExec.h) and the corresponding array item to be added to the CStaticOptionsManager::OPT_ITEM optArray
(in NppExec.cpp).
from nppexec.
Thanks for the prompt reply. In my opinion, it would be interesting to add an option to disable the printing in the console of that string.
If someone would want to insert a marker indicating the end of an operation, he could manually add a final print to the script (e.g. echo).
What do you think about it?
from nppexec.
Or, another possibility, could be to pass the option as an argument of npe_console.
E.g.:
npe_console -r =>disable ready status message
npe_console +r =>enable ready status message
from nppexec.
Wow, impressive. You've been really fast!
Unfortunately, Visual Studio is not installed in my system, so I have not a chance to build and test it...
from nppexec.
Ok, I've been able to build it. I'll test it right now.
from nppexec.
I did some tests. The console had some text:
AAA
BBB -> This line was highlighted in the console due to the cursor placed here
CCC
and after having executed this script:
npp_console disable
npe_console a+ --
npe_console p- --
npp_menucommand Plugins||NppExecSearch||Toggle ConsoleSearch
npp_menucommand Plugins||NppExecSearch||Go to next error
then the console cursor went to the last row of the console.
Is there a way to prevent this behaviour, so that the cursor position in the console is not touched after executing a script?
from nppexec.
To achieve that, I'd have to make a lot of changes - such as verifying whether something was printed to the Console or not inside each internal command. Well, maybe it could be solved in some less complicated way, but anyway there's no ready-to-use mechanism for this, and a noticeable effort would be needed to create one.
from nppexec.
Ok thanks for the detailed analysis. Maybe something like this could be more achievable?:
This is what I was trying to implement in my 'Console error browsing' script.
from nppexec.
The latest NppExec.dll built from the development branch (i.e. a work-in-progress version, not a final release!) is available here:
https://sourceforge.net/projects/npp-plugins/files/NppExec/NppExec%20Plugin%20v0.6%20RC3-RC4%20%28dev%29/
from nppexec.
Hello, what feature was added in the release you mentioned above? I'm not sure if it is related to the one I described in this topic or not.
from nppexec.
Related Issues (20)
- Built in "NPE_CONSOLE local -- x+" hard codes 0xa01010 red color HOT 3
- Using NppExec to open the Notepad++ Find/Replace dialog box with specific settings HOT 14
- Notepad++ v8.4 and beyond (inclusive 8.4.2) CRASHES or doesn't work properly when applying a color on selected text using NppExec. HOT 9
- Techniques to restore cursor position within Notepad++ file HOT 2
- SCI_REPLACE has problem matching the beginning of line HOT 6
- Changing N++ themes results in error HOT 4
- Please add support for theme. I am using version 0.8.2 and the console is white. HOT 1
- Ipython does not have auto-indentation and colour for keywords. The same things work fine in normal command prompt. HOT 5
- encoding characters error HOT 2
- CAnyRichEdit::AddStr() is very slow and should be optimized HOT 1
- Search index for online version of NppExec Manual HOT 14
- How to clean HOT 1
- How to clean up/delete the list saved in F6 HOT 1
- [HTML docs] External links are not navigable HOT 4
- There is something wrong with the console output encoding. HOT 2
- How to get current dir name only (not full path) HOT 2
- License? HOT 4
- XBrackets release accidentally added to this repo? HOT 2
- Double clicking line in console output jumps to the first tab ocurrence if you have multiple tabs open with different files of the same name HOT 4
- im trying to compile a qc file and its saying : ERROR:bad or missing options HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nppexec.