Giter Site home page Giter Site logo

REQUEST: Implement python CMD & PowerShell shortcut to save the script, type in python and current script name, and wait for commands. Autosave the file first too about notepad-plus-plus HOT 5 CLOSED

MichaelWoodc avatar MichaelWoodc commented on May 31, 2024
REQUEST: Implement python CMD & PowerShell shortcut to save the script, type in python and current script name, and wait for commands. Autosave the file first too

from notepad-plus-plus.

Comments (5)

rdipardo avatar rdipardo commented on May 31, 2024 1

Have you heard of NppExec?

py-run-nppexec

See esp. Running Python & wxPython

from notepad-plus-plus.

MichaelWoodc avatar MichaelWoodc commented on May 31, 2024

ok I just found the cmd prompt equivalent:
cmd /K set /p additional_args=Enter additional command line arguments for Python: && call python "$(FULL_CURRENT_PATH)" %additional_args%

from notepad-plus-plus.

MichaelWoodc avatar MichaelWoodc commented on May 31, 2024

Have you heard of NppExec?
See esp. Running Python & wxPython

Never heard of it, thanks for the tip! I'm trying to figure out now how I can execute the python program, leave the terminanl open, and press a hotkey to run it again without having to close it and reopen it.

Now if I've ran the python program it stays open. If I run it again it says that the termial is already open and I need to close it
Right now it looks like this when I press the hotkey to run it again:

image

The only other thing is that it doesn't take focus. Like with my command put into run, the new powershell or cmd prompt always takes focus and if you type it goes into it by default. I'm going to try and work my way around this, looks promising!

EDIT: I can now get it to exit python and be ready for the next run! Here is how with the command:
cmd /K set /p additional_args=Enter additional command line arguments for Python: && call python "$(FULL_CURRENT_PATH)" %additional_args% && exit

Now only to make the terminanl take focus when I execute

from notepad-plus-plus.

CDL512 avatar CDL512 commented on May 31, 2024

Hello Chris,
Screenshot (24)
this is what I have now.

from notepad-plus-plus.

alankilborn avatar alankilborn commented on May 31, 2024

This issue should be closed. The Run dialog and the NppExec plugin (either/or) give sufficient functionality.
Nothing further needs to be changed about Notepad++ for support for running command line programs.

from notepad-plus-plus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.