Source i (link to git-repo or to original if based on someone elses unmodified work):

https://github.com/gmm96/KDE-5-Template-Manager

Original
6
Become a Fan
7.5

Description:
KDE 5 Dolphin Service Menu for managing templates.
---------------------------------------------------------------------------------------------------

Templates are such a good feature for productivity. They are used to define a unique non-executable file format intended specifically for a particular application and help us to create that file / directory automatically. They are supported by Desktop Environments and File Managers used in most of the Linux distributions.

KDE 5 Plasma and Dolphin also support them, but you have to create a *.desktop file manually to create the template, which has a difficult syntax to remember. The goal of this project is to create a Dolphin Service Menu for building templates automatically just by selecting the desired file / directory, letting the user to choose the different template parameters (name, comments, icon). It also provides functionality to edit any of these parameters or to remove previously created templates by this tool anywhen you want, including the moment when uninstalling the plugin.

You can template any file or directory thanks to this plugin, and it is available in several languages: English, Spanish, French, Italian, German, Portuguese, Russian, Dutch, Czech, Polish, Estonian, Romanian, Finish, Swedish, Norwegian, Turkish, Danish, Ukrainian, Hungarian, Icelandic and Greek languages. Most of them has been translated using Google Translator, so some mistakes may appear in texts. If user language is not in the list, English language will be selected by default.

If you want to help me to add support for more languages, you are free to create a Pull Request modifying file TemplateManagerLocalization.sh with the new translations, or you can contact me by telegram: @supremoh.


Installation
-----------------

Firstly, install **Kdialog**, as it is the only **dependency** this plugin has.

Download the package, extract it and run the following command to install this Dolphin Service.

./install.sh

If you don't like it, you can uninstall it by running:

./uninstall.sh


Usage
-----------------

It is quite easy to use this plugin. To create a template, just select the file(s) / directory(ies) you want to use as template, do right-click and choose the option Manage template(s) -> Create template from this object. Then enter the info asked by the dialogs that will appear and everything should be ok. Parameters name and icon are required, but comment is optional. When the template is created, you can use it by doing right-click, select Create new menu and choose the template you want to use. The template will keep the same permissions that the original file has. This is quite useful if you want to template scripts or executables.

You may need to edit a template, so you can use this tool. No need to select any file, just do right-click and select Manage template(s) -> Edit existing template.... Then, you should select the template you want to edit, and a windows will prompt with all the actions you are able to perform:
- Edit name, comment or icon.
- Open current template with default application.
- Update with new template (including option to back up last template).
- Discard new template.
- Open new template with default application.
- Save and exit.

You are free to edit anything you want, you just need to select Save and exit at the end to keep the changes in disk. If you don't want to save the changes, just click on Cancel to discard them.

You can also delete templates created with this tool. You just have to do right-click and select Manage template(s) -> Remove existing template(s).... Then, a windows will prompt with all the templates, where you can select as many as you want to remove. Finally, confirm, and they will be deleted.

It is not recommended removing previous templates you kept in your disk before you first installed this plugin using the template eraser tool, as some bugs may appear and deletion may not work.
Last changelog:

v5.0

- Adding editor to Template Manager, so you can edit name, comment, icon and source file/directory.
- New icons for window title.
- Better way to extract extension from filename.
- Refactoring service menu texts, splitting for files and directories.
- Adding name validations for in template creator and editor.
- Stopping using hardcoded paths.
- Changing echo(s) to printf(s).
- Fixed Russian translations.
- Simplifying install and uninstall scripts.
- Unifying constants in TemplateManagerTools.sh.
- Changing cp to /bin/cp to avoid possible alias.
- Editing IFS just in temporary one line commands.
- Adding new line at the end of all files.
- Moving service menu from top level position to a non-important position.
- Updating README with new functionality.
- New screenshots.


Ratings & Comments

15 Comments

abode091

10 10 the best it's a great add-on, works magically and makes life easier. recommended

allanchain

10 Very helpful and convenient

artdev

10 10 the best

ashark

10 Thank you! Excellent quality of code (cleanness, confirmation dialogs, etc) and project meta info (readme description, reach screenshots). My mark is 10 of 10! Unfortunately, I did not found it before. I needed it, then found obsolete variants of https://www.pling.com/u/penguiniator/, then spent a day to port it to plasma 5. Then I published it here https://www.pling.com/p/1545526/. And then to check if my upload in visible in search, I entered Template and found your variant. It was both good and bad for me. Probably, I did not found your project before because I searched specifically for bash file create new template, and by searching "bash" I saw that variant with a screenshot exactly of bash template. Also, maybe worth mentioning in readme that this thing also saves a file permissions, so when you create a new bash script, you do not need to additionally add executable permissions. I was tired of doing this all manually (creating text file, write the shebang, add executable permission). Now I can achieve it much quicker.

ashark

Is there a reason why did not you not obsoleted previous versions in Files? According to changelog, there was no regression, so having several files there is confusing.

ashark

https://github.com/gmm96/KDE-5-Template-Manager/issues/10

toadfield

How can I remove templates I made with this addon?

supremoh

You need to remove *.desktop file and its associated template. There are in $HOME/Templates directory. I have implemented other option to remove the templates you created, I will upload it in next days.

supremoh

V2 is online, you can try it, it add the template eraser :)

toadfield

Can I install this program in dolphin?

supremoh

Of course, you just need to find it in dolphin service downloader

toadfield

Can I also create folder templates with this?

supremoh

Not by now, I am thinking about implementing this functionality.

supremoh

V2 is online, you can template now any directory or file.

pulsar-ai

10 10 the best

Pling
0 Affiliates
Details
license GPLv3
version 5.0
updated
added
downloads 24h 2
mediaviews 24h 0
pageviews 24h 5

Other Dolphin Service Menus:

burnWithGrowisofs
chunkylover
last update date: 20 years ago

Score 5.0

Firefox-bookmarks service menu
storyteller
last update date: 20 years ago

Score 5.0

Text Convert Service Menu
smp-penguin
last update date: 21 years ago

Score 5.0

Pdflatex servicemenu
bobuse
last update date: 20 years ago

Score 5.0

Send through Bluetooth
dmnet
last update date: 21 years ago

Score 5.0

Add to Bloglines
spookster
last update date: 20 years ago

Score 5.0



System Tags