<table><tr><td style="">abogdanenko added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D17764">View Revision</a></tr></table><br /><div><div><p>I can see why you are confused. According to the documentation for Create New<br />
menu, we could expect empty file to be created.</p>

<p>See <a href="https://docs.kde.org/stable5/en/applications/konqueror/making.html" class="remarkup-link" target="_blank" rel="noreferrer">The Konqueror Handbook. 3. Konqueror the File Manager. Create New</a></p>

<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">> Use this to create an ordinary, empty, text file.</pre></div>

<p>See also <a href="https://docs.kde.org/trunk5/en/applications/dolphin/command-reference.html" class="remarkup-link" target="_blank" rel="noreferrer">The Dolphin Handbook. Chapter 4. Command Reference</a></p>

<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">> Creates a new object (such as a folder or a text file) in the current
> folder.
>
> You will find an explanation of all available objects in Konqueror's
> handbook in the chapter Create New.</pre></div>

<p>However, this is not what we get, see<br />
<a href="https://forum.kde.org/viewtopic.php?f=224&t=142366" class="remarkup-link" target="_blank" rel="noreferrer">KDE Neon > Dolphin > Create New > Text File: File not empty. • KDE Community Forums</a>.</p>

<p>Current template is defined here<br />
<a href="https://phabricator.kde.org/source/kio/browse/master/src/new_file_templates/TextFile.txt" class="remarkup-link" target="_blank" rel="noreferrer">https://phabricator.kde.org/source/kio/browse/master/src/new_file_templates/TextFile.txt</a><br />
(View as Hexdump) and referenced in desktop file here<br />
<a href="https://phabricator.kde.org/source/kio/browse/master/src/new_file_templates/TextFile.desktop" class="remarkup-link" target="_blank" rel="noreferrer">https://phabricator.kde.org/source/kio/browse/master/src/new_file_templates/TextFile.desktop</a>.</p>

<p>As far as I understand, on my computer running Debian testing the template is<br />
hard-coded into shared library shipped with libkf5kiofilewidgets5 package,<br />
so a user can't change the template.</p>

<p>Anyway, here I'm not suggesting we change the template, we could discuss that<br />
separately. I'm merely asking to support user-defined templates like the one I<br />
published in a comment above.</p>

<p>As a developer, I often create empty files in the same directory where the<br />
current open file is, so this feature is useful to me.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R40 Kate</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D17764">https://phabricator.kde.org/D17764</a></div></div><br /><div><strong>To: </strong>abogdanenko<br /><strong>Cc: </strong>ngraham, kwrite-devel, hase, michaelh, demsking, cullmann, sars, dhaumann<br /></div>