| Summary: | Format document action | ||
|---|---|---|---|
| Product: | [Applications] kate | Reporter: | Nicolas Fella <nicolas.fella> |
| Component: | application | Assignee: | KWrite Developers <kwrite-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | wishlist | CC: | christoph, nate, waqar.17a |
| Priority: | NOR | ||
| Version First Reported In: | Git | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | c3ed28b47bda340c7515eb47234cec9ec232dacd | Version Fixed/Implemented In: | 23.04 |
| Sentry Crash Report: | |||
|
Description
Nicolas Fella
2022-03-15 13:57:36 UTC
That is true, that is a valid wish.. But I am not sure how to implement that easily, ATM there is no way to bind X external tools to the same action and choose the "right" one per document highlighting/mode/mimetype, at least not if I am not wrong. perhaps it would make sense to have a "Format" plugin that maintains a list of languages/formats/tools and remove the relevant external tools definitions? Something to consider is that the LSP integration does have a Format action, but for stuff like JSON and XML LSP doesn't make much sense otherwise, does it? A dedicated plugin would be the right way to solve this problem, imo. But if we go that route, the plugin must not be a simple list of X processes mapping to Y languages. It should be smart enough to apply formatting where things have changed and allow preserving undo history etc. Implemented in c3ed28b47bda340c7515eb47234cec9ec232dacd |