Snippets loading from file

Christoph Cullmann christoph at cullmann.io
Sat Jul 24 23:44:33 BST 2021


On 2021-07-24 14:12, Simon Walter wrote:
> Hi all,
> 
> I'd like to be able to, load snippets from file.
> 
> The reason is that I'd like to be able to keep snippets in the 
> project's
> git repo.
> 
> From what I can tell, it looks like I can only load from "Get Hot New
> Stuff" API. Is that the case?

Hi,

yes, I think you are right.

For the local stuff you could version the files stored in the default 
locations
but at the moment there is no way to e.g. have per project snippets
or to load them from dedicated positions.

e.g. for project related snippets it could make sense to integrate
the snippets plugin like the search plugin with our projects plugin
and load stuff stored project locally automatically or allow
to specify in .kateproject json where to load stuff from.

Greetings
Christoph

> 
> Best regards,
> 
> Simon

-- 
Ignorance is bliss...
https://cullmann.io | https://kate-editor.org


More information about the KWrite-Devel mailing list