Re: kate run script in embedded terminal
Waqar Ahmed <[email protected]> Fri, 7 Jul 2023 14:53:27 +0500
| Newsgroups | gmane.comp.kde.devel.kwrite |
|---|---|
| Message-ID | <CAPesRH7aR+deFOg6VsUbOH4-Oc6JnEJNLp7U0LZsx7J5A-wTBw@mail.gmail.com> |
Check Tools menu. Tools -> Run Current Document. The code for the plugin that handles this action lives here https://invent.kde.org/utilities/kate/-/tree/master/addons/konsole If you have anything more specific in mind, you can add the feature and submit a PR :) On Fri, Jul 7, 2023 at 1:05 AM Živoslav <[email protected]> wrote: > > Hey, guys, > > I'm a developer and I want to switch from microsoft vscode to kate. > > I need to set one feature. In external tools I found a tool "run shell > script" which is similar to what I need. > > I need run script in the embedded terminal and not run an external > console instance. > > In general, I need to map a keyboard shortcut to run the script, or > command in the embedded console. > > How do I do this? > > Now I work like this: > > - I edit the source code of my program in the editor > - I press a hotkey and run one particular script (I called it play.fish) > in the built-in terminal > > > I edit all the commands during development in this script as needed. It > is a working script. I can run a "make" command from it, I can run a > python or php script from it, I can delete temporary files in it and > then run any command. Terminal is the most useful helper in development. > > > I wrote a simple extension for vscode that saves the current file and > runs my work script in the terminal. > > How to achieve this in kate? The javascript extension has no API for > embedded terminals. I am perhaps able to write an extension in C++. > > I managed to achieve this feature by modifying external tools "run shell > script", it works fine, it just always runs the external console and > does not use embedded. > > > Thank you > Zivoslav >