Bug 442469 - Running a external tool on saving.
Summary: Running a external tool on saving.
Status: RESOLVED DUPLICATE of bug 406109
Alias: None
Product: kate
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-15 09:24 UTC by Derek Christ
Modified: 2022-01-16 16:41 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Derek Christ 2021-09-15 09:24:05 UTC
SUMMARY
It would be a nice convenience to be able to run a external tool every time the user saves the current file. For example by saving the file a code formatter tool could run and format all changes.

STEPS TO REPRODUCE
1. Setup a external tool to run on save
2. Every time the user saves, the tool runs

OBSERVED RESULT
Not yet possible, to my understanding.


SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20210913
KDE Plasma Version: 5.22.5
KDE Frameworks Version: 5.85.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
It's possible to do something similar with hacks. Just assign Ctrl+S on the external tool and config the tool that it will save the current file before running.
But this is not a very nice solution to the problem.
Comment 1 Dominik Haumann 2021-09-18 02:32:26 UTC
This would have to be implemented with care: an external tool can specify to save the current or all documents on execution, that could quickly lead to an infinite loop.

If I understand correctly, it's also the idea to run a tool right before saving and nor after it was already saved.
Comment 2 Waqar Ahmed 2022-01-16 16:41:12 UTC
Closing as dup, but an implementation is in the works.

*** This bug has been marked as a duplicate of bug 406109 ***