Changing the NEW Submenu

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
clarkedesign
Posts: 71
Joined: 14 Feb 2013 09:29

Changing the NEW Submenu

Post by clarkedesign »

I've changed the [NewTemplates] section in the configuration file to allow a few more common folder names to be readily available.

However only the first 3 are showing up in the submenu - do I need to change something else ???

[NewTemplates]
; Tweak: 5 templates for New Folder default names
Version=1
Folder0=\N\e\w \F\o\l\d\e\r
Folder1=\S\o\u\r\c\e
Folder2=\O\r\i\g\i\n\a\l \D\o\c\u\m\e\n\t\s
Folder3=ddmmyyyy
Folder4=dd-mm-yyyy
; Tweak: 3 templates for New File default names
File0=\N\e\w \T\e\x\t \F\i\l\e
File1=ddmmyyyy
File2=dd-mm-yyyy
NewFolderTemplateIndex=0
Thanks,
Sean Clarke

PeterH
Posts: 2827
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: Changing the NEW Submenu

Post by PeterH »

The original stmt says:
; Tweak: 3 templates for ...
So I think the 3 is hardcoded.

For other operands, where variable number of values is allowed, you may find something like
Count=32
(here for [CustomColumns])

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: Changing the NEW Submenu

Post by TheQwerty »

clarkedesign, if you aren't already familiar with it you might find the New Items feature useful.

Find out more here: http://www.xyplorer.com/highlights.php#newitems

clarkedesign
Posts: 71
Joined: 14 Feb 2013 09:29

Re: Changing the NEW Submenu

Post by clarkedesign »

I've already setup this using the "New Items" system, just wanted to see if I could have more than 3 items in the right-click "New" submenu.

Maybe a wish list item ??
Thanks,
Sean Clarke

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: Changing the NEW Submenu

Post by TheQwerty »

To be candid I think these tweaks should be removed entirely as there are two more user-friendly alternatives already in New Items and User Defined Commands.

The problem with their removal though is that Folder0 and File0 are responsible for the standard New Folder and New File shortcut keys.


Instead I propose:
1) Elevate Folder0 and File0 to the GUI under Config > Colors and Styles > Templates.
New Folder Name:
New File Name:

2) On upgrade & by default create items in New Items to replace & remove Folder1/2 and File1/2.

3) Combine and organize the Edit > New, Edit > New Items, and User > New menus.
Edit > New -submenu-
> New Folder (Folder0)
> New Folders...
> New Path...*
-
> New File (File0)
> New Files...
-
> New Shortcut
-
> New Items -submenu-
> New Commands -submenu- (User > New UDCs)

This pulls all the "New" options into a single menu.
It does move New Items a level deeper but it also makes the Edit and Context menus shorter. I feel this is a wash.

The User > New menu should also remain available so it continues to appear as part of UDC.

3.5) The New Items menu should resolve {date} templates on display.


This would reduce some of the redundancy and I cannot see any way that this decreases the existing functionality.

-----

*Is New Paths really needed since New Folders already accepts paths? The only difference is the former browses to the new path - but couldn't New Folders do the same when you only enter a single path?

Slightly off-topic... I'm stumped - what's NewFolderTemplateIndex correspond to?

admin
Site Admin
Posts: 66318
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Changing the NEW Submenu

Post by admin »

NewFolderTemplateIndex stores the last used option in the "Paste Here to new subfolder" dropdown and puts it as default the next time.

Thanks for the ideas, but currently I've got other things in the making.

Post Reply