! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Add support for templates
Status:
CLOSED: FIXED
Severity:
enhancement

Comments

Description Benedikt Meurer editbugs 2006-01-28 11:51:58 CET
--- Posted by Tim Alexander on thunar-dev ---

I'm not sure if I'm not doing this right again, but I don't think that
making files from the right click menu is allowed yet.

Is there any plan to impliment this soon? It is getting incredibly
ANNOYING having to open the terminal to create a file, then use thunar
to navigate to it.

It really only needs to be like nautilus' default for now, just create
a totally blank file. I know nautilus supports extensions that allow
you to make a bunch of different kinds, but that is the most useful,
honestly. Plus, it's a lot easier to code.
Comment 1 Vincent 2006-01-28 12:03:35 CET
I propose using a ~/.templates folder, or a ~/Templates folder for compatibility
with Nautilus. Anyway, the Templates folder could look like this:

----
PHP File.php
Text File.php
OpenDocument Text File.odt
...
----

So that the names in the right-click menu can be generated by the file names. 

Another suggestion is to use something like:
----
file.php
file.txt
file.odt
...
----

And then in the context menu use "New <extension> File", eg "New txt File".(In
reply to comment #0)
> --- Posted by Tim Alexander on thunar-dev ---
> 
> I'm not sure if I'm not doing this right again, but I don't think that
> making files from the right click menu is allowed yet.
> 
> Is there any plan to impliment this soon? It is getting incredibly
> ANNOYING having to open the terminal to create a file, then use thunar
> to navigate to it.
> 
> It really only needs to be like nautilus' default for now, just create
> a totally blank file. I know nautilus supports extensions that allow
> you to make a bunch of different kinds, but that is the most useful,
> honestly. Plus, it's a lot easier to code.

(In reply to comment #0)
> --- Posted by Tim Alexander on thunar-dev ---
> 
> I'm not sure if I'm not doing this right again, but I don't think that
> making files from the right click menu is allowed yet.
> 
> Is there any plan to impliment this soon? It is getting incredibly
> ANNOYING having to open the terminal to create a file, then use thunar
> to navigate to it.
> 
> It really only needs to be like nautilus' default for now, just create
> a totally blank file. I know nautilus supports extensions that allow
> you to make a bunch of different kinds, but that is the most useful,
> honestly. Plus, it's a lot easier to code.
Comment 2 Benedikt Meurer editbugs 2006-01-28 15:00:37 CET
Ok, for 1.0.0 we adopt the Nautilus-way (-> ~/Templates).
Comment 3 Benedikt Meurer editbugs 2006-01-28 23:08:55 CET
Imported with revision 19639.

2006-01-28	Benedikt Meurer <benny@xfce.org>

	* thunar-vfs/Makefile.am, thunar-vfs/thunar-vfs-creat-job.{c,h},
	  thunar-vfs/thunar-vfs.{c,h}, thunar-vfs/thunar-vfs.symbols: Add new
	  class ThunarVfsCreatJob, which is used to create empty files for a
	  given list of paths.
	* docs/reference/thunar-vfs/tmpl/thunar-vfs-operations.sgml,
	  docs/reference/thunar-vfs/thunar-vfs-sections.txt: Update API docs.
	* thunar/thunar-application.{c,h}: Add thunar_application_creat() as
	  wrapper for the newly imported ThunarVfsCreatJob.
	* thunar/thunar-application.{c,h}: Add thunar_application_copy_to() to
	  copy files from one location to another, rather than copying files
	  from different sources to exactly one folder.
	* thunar/thunar-create-dialog.c(thunar_create_dialog_set_filename):
	  If the suggested file name contains a dot, pre-select only the text
	  up to the dot.
	* thunar/thunar-standard-view-ui.xml, thunar/thunar-standard-view.c,
	  thunar/thunar-templates-action.{c,h}, thunar/Makefile.am: Add support
	  for Templates in a way compatible with what Nautilus does currently.
	  This is part one of the fix for bug #1391.
	* thunar/thunar-preferences, docs/README.thunarrc: Add new property
	  "misc-show-about-templates", which determines whether the "About
	  Templates" dialog will be shown when entering the Templates folder.
	* icons/16x16/stock_thunar-templates.png, icons/16x16/Makefile.am,
	  thunar/thunar-stock.{c,h}: Add new stock icon "thunar-templates".
	* thunar/thunar-window-ui.xml, thunar/thunar-window.c: Add "Templates"
	  to the "Go" menu, which will open the ~/Templates folder (it will be
	  created on-demand) and popup a message describing the purpose of the
	  ~/Templates folder. This is part two of the fix for bug #1391.
	* po/POTFILES.in: Add new files here.
	* po/*.po: Merge new strings.
Comment 4 Benedikt Meurer editbugs 2006-01-29 11:42:15 CET
Add support for submenus (folders in ~/Templates).
Comment 5 Benedikt Meurer editbugs 2006-01-29 13:07:49 CET
Committed with revision 19656.

2006-01-29	Benedikt Meurer <benny@xfce.org>

	* thunar/thunar-templates-action.c: Add support for sub folders below
	  the ~/Templates folder. This fixes reopened bug #1391.

Bug #1391

Reported by:
Benedikt Meurer
Reported on: 2006-01-28
Last modified on: 2009-07-17

People

Assignee:
Jannis Pohlmann
CC List:
0 users

Version

Version:
0.2.1svn

Attachments

Additional information