Discussion:
Changing the default editor for a MIME type
(too old to reply)
André Hartmann
2018-11-26 16:41:46 UTC
Permalink
Hello,

I'd like to edit some Linux Kernel Device Tree files (*.dts) in QtCreator.

Unfortunately this extension is mapped to audio/dts and has Binary
Editor as handler.

It seems there is no way to change that assignment - what am I missing?

Regards,
André
André Hartmann
2018-11-27 07:10:44 UTC
Permalink
I'm a step further:

I deleted the pattern *.dts from audio/vnd.dts, and after a restart it
opens the files in a text editor, but with Clang annotations.

So it seems, Creator uses a C++ editor to edit the file. A "normal" text
editor would have been enough.

Anyway, I can edit my files now.

Regards,
André
Post by André Hartmann
Hello,
I'd like to edit some Linux Kernel Device Tree files (*.dts) in QtCreator.
Unfortunately this extension is mapped to audio/dts and has Binary
Editor as handler.
It seems there is no way to change that assignment - what am I missing?
Regards,
André
Eike Ziller
2018-11-27 07:21:15 UTC
Permalink
I deleted the pattern *.dts from audio/vnd.dts, and after a restart it opens the files in a text editor, but with Clang annotations.
So it seems, Creator uses a C++ editor to edit the file. A "normal" text editor would have been enough.
If you add *.dts as a pattern to the text/plain mime type, I’d expect them to be opened in the plain text editor instead.

Br, Eike
Anyway, I can edit my files now.
Regards,
André
Post by André Hartmann
Hello,
I'd like to edit some Linux Kernel Device Tree files (*.dts) in QtCreator.
Unfortunately this extension is mapped to audio/dts and has Binary Editor as handler.
It seems there is no way to change that assignment - what am I missing?
Regards,
André
_______________________________________________
Qt-creator mailing list
https://lists.qt-project.org/listinfo/qt-creator
--
Eike Ziller
Principal Software Engineer

The Qt Company GmbH
Rudower Chaussee 13
D-12489 Berlin
***@qt.io
http://qt.io
Geschäftsführer: Mika Pälsi,
Juha Varelius, Mika Harjuaho
Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 144331 B
André Hartmann
2018-11-27 07:33:13 UTC
Permalink
Post by Eike Ziller
If you add *.dts as a pattern to the text/plain mime type, I’d expect
them to be opened in the plain text editor instead.

Thanks Eike, that worked! :)
Post by Eike Ziller
I deleted the pattern *.dts from audio/vnd.dts, and after a restart it opens the files in a text editor, but with Clang annotations.
So it seems, Creator uses a C++ editor to edit the file. A "normal" text editor would have been enough.
If you add *.dts as a pattern to the text/plain mime type, I’d expect them to be opened in the plain text editor instead.
Br, Eike
Anyway, I can edit my files now.
Regards,
André
Post by André Hartmann
Hello,
I'd like to edit some Linux Kernel Device Tree files (*.dts) in QtCreator.
Unfortunately this extension is mapped to audio/dts and has Binary Editor as handler.
It seems there is no way to change that assignment - what am I missing?
Regards,
André
_______________________________________________
Qt-creator mailing list
https://lists.qt-project.org/listinfo/qt-creator
Loading...