Comments (2)
The >>>
might be good, but is it sufficient? Not everyone runs with the PythonScript Console visible. (Most of my scripts don't force it on, unless I'm debugging; and I don't have that window showing by default.)
My thought would be an icon on the toolbar: either one that only appears while the script is running, or one that changes the icon depending on the state (similar to the pushed/unpushed for builtin toolbar icons like the word-wrap or function-list): my original ideas were like red-light/green-light and walk/don't-walk icons, though I cannot decide whether red-light would mean the script was running (so it's not safe to manually edit) or wasn't running (so the script is "stopped") -- since I am not certain, I wouldn't be surprised if some fraction of the users were confused as to which meant which. Or maybe a yield triangle sign when it's running ("yield to the active script"). (If you don't like the icon being permanent, maybe have a toggleable setting, similar to Show Console, that would show or hide the script-status icon.)
Or maybe a simpler interface, as I suggested in #288, would be to just change the cursor to the IDC_WAIT cursor while the script is running, to get the well-recognized spinning hourglass.
from pythonscript.
Since it's rare that scripts to run for so long, you'd expect it for the peculiar scripts, so perhaps one of the simplest ways is just add console.hide()
at the start of the script, and console.show()
at the end of it ? (Or reversly). And maybe making it write some output on console saying it's this particular script that ended.
from pythonscript.
Related Issues (20)
- `exit()` in a pythonscript causes Notepad++ to CRASH HOT 13
- add support for notepad.allocateIndicator function HOT 3
- editor.getUserLineSelection() and editor.getUserCharSelection() should allow other defaults if empty selection HOT 13
- Script hangs when using notepad.runMenuCommand with non-existent menu items HOT 5
- No more compatibile Notepad plugin HOT 8
- Console not persistent visible during relaunch HOT 2
- editor.getTextRange() crashes notepad HOT 3
- Possible to get same filepath in multiple tabs using notepad.saveAs() HOT 3
- Script bound to Ctrl-only keycombo can't be opened for edit by holding Ctrl and clicking it in menu HOT 7
- Sys.Path missing some directories in latest 3.0.17 version HOT 6
- Sys.Path (still) missing some directories in latest 3.0.17 version HOT 8
- editor.research() and editor.search() won't search backwards HOT 3
- editor.research() assigns empty string to non-participating groups (instead of the preferred None)
- [Feature Enhancement] Have 'Run Previous Script' ignore first-level scripts
- "☑ Automatically open console on error" should be default behavior HOT 2
- Wrap text in console HOT 5
- Donations links broken in npppythonscript.sourceforge.net
- Two methods, editor.markerAdd and editor.markerSetBack, have errors. How do I modify our setback? HOT 4
- permanent setting HOT 4
- Support new N++ plugin command NPPM_GETTABCOLORID 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 pythonscript.