D17764: Allow creating empty file in filesystem browser

Alexey Bogdanenko noreply at phabricator.kde.org
Sun Dec 23 16:50:53 GMT 2018


abogdanenko added a comment.


  Here is an example template which generates "Empty File..." menu item.
  
  First, create directories for templates:
  
    mkdir --parents --verbose ~/.local/share/templates/.source
  
  Second, create empty template file:
  
    touch ~/.local/share/templates/.source/empty
  
  Third, create desktop entry. Create file `~/.local/share/templates/empty.desktop` with the following contents:
  
    [Desktop Entry]
    Name=Empty File...
    
    Comment=Enter filename:
    
    Type=Link
    URL=.source/empty
    Icon=none

REPOSITORY
  R40 Kate

REVISION DETAIL
  https://phabricator.kde.org/D17764

To: abogdanenko
Cc: kwrite-devel, hase, michaelh, ngraham, demsking, cullmann, sars, dhaumann
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kwrite-devel/attachments/20181223/88ff2607/attachment.html>


More information about the KWrite-Devel mailing list