Quick Set/Reset Current Lister Format

After reading through this relevant and enlightening FAQ entry I created a menu button which provides a pick list of existing formats and quick access to edit folder formats within Preferences.

Regards, AB

Note: The code in the following append by Ken Alcock is undoubtedly an improvement on mine, so use instead.

<?xml version="1.0"?>
<button>
	<guid>{6B9572A5-2C94-4BB1-9024-A0D367F26E8F}</guid>
	<label>Lister Appearance</label>
	<tip>Menu of Lister View Formats</tip>
	<icon1>212</icon1>
	<button>
		<guid>{84C63261-BB06-42B5-AA91-5F93BA88D866}</guid>
		<label>List View Formats</label>
		<tip>Popup List of View Formats</tip>
		<icon1>212</icon1>
		<function>
			<instruction>Properties FORMATLIST</instruction>
		</function>
	</button>
	<button>
		<guid>{F47F268E-6574-48F8-8AF3-7F6135E61312}</guid>
		<label>Edit View Formats</label>
		<tip>Edit View Formats</tip>
		<icon1>212</icon1>
		<function>
			<instruction>Prefs FORMATLIST</instruction>
		</function>
	</button>
</button>

aussieboykie:

I just wanted to point out that your button code above cannot be copied-and-pasted. I believe the XML code was changed during the post [by the old forum software].

In the mean time, I have a Menu-Button with nearly the same (perhaps a little more even) on it that folks can use.

<?xml version="1.0"?>
<button display="both" effect="saturate" type="menu_button">
	<guid>{FCF9CCDB-CAAF-48B6-A4BB-E978EFEDE0F7}</guid>
	<label>Folder Formats</label>
	<tip>Preferences – Folder Page: Edit Folder Formats and other folder-related settings.</tip>
	<icon1>119</icon1>
	<function type="normal">
		<instruction>Prefs PAGE=folders,1</instruction>
	</function>
	<button display="both" effect="gray">
		<guid>{4BFD5A31-8B40-47D6-A9EF-20CCE33250B4}</guid>
		<label>Folder Formats</label>
		<icon1>86</icon1>
		<function type="normal">
			<instruction>Properties FORMATLIST</instruction>
		</function>
	</button>
	<button display="both" effect="saturate" separate="yes">
		<guid>{0141D521-3D5E-4F12-B04F-32FD35EFD9E0}</guid>
		<label>Reset to Folder Format</label>
		<tip>Reset Folder Options to those saved in the Folder Format for the listed folder.</tip>
		<icon1>0</icon1>
		<function type="normal">
			<instruction>Set FORMAT=!folder</instruction>
		</function>
	</button>
	<button display="both" effect="gray">
		<guid>{D7FAA54F-F317-4A4A-B393-777F38667578}</guid>
		<label>Folder &amp;Options...</label>
		<tip>Edit the appearance and settings of the current folder</tip>
		<icon1>86</icon1>
		<function type="normal">
			<instruction>Properties FOLDEROPTIONS</instruction>
		</function>
	</button>
</button>

To get the above button to your Opus configuration:

  1. Copy the button code above to your clipboard.
  2. Right-click any Opus toolbar and select Customize.
  3. Right-click on the desired toolbar/menu to add the button to, and select Paste.

I've added some things to the button I posted above, like: Sort Order, Numeric Sort, Format Lock, Autosize Columns, Check Box Mode.

The intent is to give the user (and me) a single place to look for all commands related to Folder Options and Folder Formats. In this version of the button, I have turned off all images. I think the menu looks cleaner this way (and it takes up less space). The images are still present in the buttons, they are just not displayed. You can easily turn the images back on if you like.

<?xml version="1.0"?>
<button display="label" effect="saturate" label_pos="right" type="menu_button">
	<guid>{DD104235-7BB5-4FF0-B045-91652583825A}</guid>
	<label>Folder Formats</label>
	<tip>Edit Folder Formats. Menu contains list of Favorite and Content Type Formats and other Folder Options related commands.</tip>
	<icon1>119</icon1>
	<function type="normal">
		<instruction>Prefs PAGE=folders,1</instruction>
	</function>
	<button display="label" effect="saturate" separate="yes">
		<guid>{D41D1C31-48AD-4653-BD01-65AD259A1CD4}</guid>
		<label>Folder &amp;Options...</label>
		<tip>Edit appearance and settings of current folder. Changes are lost upon navigating to a different folder, unless saved to a Format.</tip>
		<icon1>0</icon1>
		<function type="normal">
			<instruction>Properties FOLDEROPTIONS</instruction>
		</function>
	</button>
	<button display="label" effect="saturate">
		<guid>{93E83330-D8CB-40A2-82C5-6751CCE79231}</guid>
		<label>Folder Formats</label>
		<tip>Shows a list of your Favorite Folder Formats</tip>
		<icon1>86</icon1>
		<function type="normal">
			<instruction>Properties FORMATLIST</instruction>
		</function>
	</button>
	<button display="label" effect="saturate" separate="yes">
		<guid>{574F417D-0699-4C4E-A150-1AD484872BD8}</guid>
		<label>Reset to Folder Format</label>
		<tip>Reset Folder Options to those saved in the Format for the listed folder (if any).</tip>
		<icon1>0</icon1>
		<function type="normal">
			<instruction>Set FORMAT=!folder</instruction>
		</function>
	</button>
	<button display="label" effect="saturate" type="menu">
		<guid>{687C89FE-D177-42FC-A4D1-A7D408535CB5}</guid>
		<label>&amp;Sort By...</label>
		<button display="label" effect="saturate">
			<guid>{BF720579-699C-4CE9-913C-6D0455E554C6}</guid>
			<label>Sortable Columns</label>
			<tip>Displays a list of the current columns allowing you to change the sort order</tip>
			<icon1>42</icon1>
			<function type="normal">
				<instruction>Set SORTBY=sortlist</instruction>
			</function>
		</button>
		<button display="label" effect="saturate">
			<guid>{049FB473-BD67-4B39-B5ED-C9B7188E4FA5}</guid>
			<label>Numeric Sorting</label>
			<tip>Toggles Numeric order filename sorting ON or OFF.</tip>
			<icon1>0</icon1>
			<function type="normal">
				<instruction>Set SORTNUMERIC=Toggle </instruction>
			</function>
		</button>
		<button display="label" effect="saturate">
			<guid>{0B7D27E5-D6F9-4538-BA2D-5604FC96F1C9}</guid>
			<label>Word Sorting</label>
			<tip>Toggles Word Sorting (special handling for hyphens, etc) ON or OFF.</tip>
			<icon1>0</icon1>
			<function type="normal">
				<instruction>Set SORTNUMERIC=Toggle </instruction>
			</function>
		</button>
	</button>
	<button display="label" effect="saturate" separate="yes">
		<guid>{D1E32677-E672-4DAA-BC01-383760797E72}</guid>
		<label>Format &amp;Lock</label>
		<tip>Locks or unlocks the Folder Options currently in use in the active Lister.</tip>
		<icon1>208</icon1>
		<function type="normal">
			<instruction>Set FORMATLOCK=Toggle</instruction>
		</function>
	</button>
	<button display="label" effect="saturate">
		<guid>{EA51E8FE-78D3-4BDA-9022-96FF74000D9A}</guid>
		<label>Autosize Columns</label>
		<tip>Autosize all Lister column widths (Details/Power mode only).</tip>
		<icon1>42</icon1>
		<function type="normal">
			<instruction>Set AUTOSIZECOLUMNS</instruction>
		</function>
	</button>
	<button display="label" effect="saturate">
		<guid>{3971BB68-0ADB-40CD-977B-000033F7274B}</guid>
		<label>Chec&amp;k-Box Mode</label>
		<tip>Toggle Check-Box Mode on or off in the active Lister.</tip>
		<icon1>206</icon1>
		<function type="normal">
			<instruction>Set CHECKBOXMODE=Toggle</instruction>
		</function>
	</button>
</button>