Open Header plugin for OCaml
Dominik Haumann
dhaumann at kde.org
Mon Dec 30 22:22:22 GMT 2019
Hi Christoph,
this is a really good idea.
+1
Dominik
Christoph Cullmann <christoph at cullmann.io> schrieb am Mo., 30. Dez. 2019,
20:43:
> On 2019-12-29 21:43, Christoph Cullmann wrote:
> >> My idea what to adapt the Open Header to do the job done in
> >> PluginKateOpenHeader::slotOpenHeader() for sources/headers also for
> >> OCaml implementations/interfaces, and mention .ml/.mli in UI strings &
> >> documentation. The work done is not really difficult, I have most of
> >> locally already.
> >>
> >> Before I go ahead and push it, is there anything wrong in the approach
> >> I took?
> >
> > Hi,
> >
> > No, I think that is the way to go.
> >
> > Using ocaml sometimes, too, this sounds like a nice enhancement.
> Hi,
>
> I thought about a different way to tackle this with a more "generic"
> approach:
>
> We could:
>
> 1) Get the list of all files in the same dir that match the current
> basename with any extension
>
> 2) Get the syntax highlighting definition for each of these files (and
> our original one) via the matching KSyntaxHighlighting function
>
> 3) Then open the file that has the same definition than the original
> file
>
> This should work for any language that has pairs of XX.foo XX.bar files.
>
> Btw., I see you have taken care of the changes in OCaml Merlin ;=)
>
> Nice!
>
> I need to work on OCaml stuff at company, too.
>
> Greetings
> Christoph
>
> --
> Ignorance is bliss...
> https://cullmann.io | https://kate-editor.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kwrite-devel/attachments/20191230/7a2a7455/attachment.html>
More information about the KWrite-Devel
mailing list