Bug 497934 - Changing default extension for "Create new > text file"
Summary: Changing default extension for "Create new > text file"
Status: RESOLVED DUPLICATE of bug 494774
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 24.12.0
Platform: Debian testing Linux
: NOR wishlist
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-27 09:14 UTC by tnemeth
Modified: 2024-12-29 11:09 UTC (History)
2 users (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 tnemeth 2024-12-27 09:14:18 UTC
SUMMARY

    Hello !

    The menu entry to create a new text file defaults to the .txt extension. This may
    have a meaning for DOS/Windows users because MS systems launch an application to open
    a file based on the file extension. Extensions have historically no meaning on Unix
    systems where file type detection occurs to know what kind of file it is and, when
    configured, what application to use to open that file.

    However, on my systems I use mostly the .md extension for text files as markdown is
    much more interesting in terms of display possibilities than "pure" text files.

    My wish is to have a configuration entry to specify which extension to use for that
    menu entry (without needing to tinker with the distribution files). Users would be
    able to have their preferences tunable : .md, .rst, .txt, .cpp :)

    Maybe a way to make it easy to add new types for "create new" files ?

    Thanks in advance !

Thomas.
Comment 1 Felix Ernst 2024-12-28 15:33:24 UTC
Hello,

>Maybe a way to make it easy to add new types for "create new" files ?

the "Create New…" menu is already customisable through the Templates folder. So while the "Create New>Text File" will always create a file with the .txt extension currently, you can simply create an empty "Markdown.md" file under "Home/Templates" (make sure this folder is set as your template folder in System Settings>Places) and (perhaps after a restart) that Markdown.md file should be available as a creation option in the "Create New…" menu.

For context you might be interested in https://bugs.kde.org/show_bug.cgi?id=494679 where users had accidentally set their template folder to be their home folder and all their personal files were available as templates in the "Create New" menu.

Does this sufficiently fulfill your feature request?
Comment 2 tnemeth 2024-12-28 17:04:22 UTC
(In reply to Felix Ernst from comment #1)
> Hello,
> 
> >Maybe a way to make it easy to add new types for "create new" files ?
> 
> the "Create New…" menu is already customisable through the Templates folder.
> So while the "Create New>Text File" will always create a file with the .txt
> extension currently, you can simply create an empty "Markdown.md" file under
> "Home/Templates" (make sure this folder is set as your template folder in
> System Settings>Places) and (perhaps after a restart) that Markdown.md file
> should be available as a creation option in the "Create New…" menu.
> 
> For context you might be interested in
> https://bugs.kde.org/show_bug.cgi?id=494679 where users had accidentally set
> their template folder to be their home folder and all their personal files
> were available as templates in the "Create New" menu.
> 
> Does this sufficiently fulfill your feature request?

    First I'd like to thank you for your reply.
    You can't imagine the times where I made a wishlist or even a BR without
    any reply.

    To come back on the subject... well... I was expecting something like that.
    Since it's about the same way to add actions... Oh. I was checking the exact
    menu entry for custom actions and it's gone :(
    I'm using debian testing (been using debian since the end of the 90', you
    can't change an old habit) and recently there was a switch from plasma5
    to plasma6. My custom actions menu disappeared.

    I'm gonna look at the template directory (hey now that it has a use !) and
    the thread you pointed me to. However that does not tick the [ ] easy line.

    This part of Dolphin lacks discoverability...

    Thanks again.


Thomas.
Comment 3 Felix Ernst 2024-12-29 11:09:10 UTC
(In reply to tnemeth from comment #2)
> > Does this sufficiently fulfill your feature request?
> 
>     First I'd like to thank you for your reply.
>     You can't imagine the times where I made a wishlist or even a BR without
>     any reply.

There is a steady stream of bug reports that are coming in and we don't have a matching amount of contributors with expertise to answer or work on them, so that is unfortunately how it is at times.

>     To come back on the subject... well... I was expecting something like
> that.
>     Since it's about the same way to add actions... Oh. I was checking the
> exact
>     menu entry for custom actions and it's gone :(
>     I'm using debian testing (been using debian since the end of the 90', you
>     can't change an old habit) and recently there was a switch from plasma5
>     to plasma6. My custom actions menu disappeared.

I think this one might have been reported (and perhaps even fixed on our end) if I remember correctly, but I can't find the bug report at the moment.

>     I'm gonna look at the template directory (hey now that it has a use !)
> and
>     the thread you pointed me to. However that does not tick the [ ] easy
> line.
> 
>     This part of Dolphin lacks discoverability...

Indeed it is not discoverable. There is a bug report about the discoverability aspect of this. Considering that discoverability seemed to be the main issue that would have resolved this bug report, I will mark this as a duplicate of the discoverability bug report.

>     Thanks again.

You are welcome!

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