Popup by Tag/Cmt column right-click

Features wanted...
Post Reply
sandra
Posts: 11
Joined: 08 May 2010 11:23

Popup by Tag/Cmt column right-click

Post by sandra »

I use Tags and Comments very much and have "Popup by Tag/Cmt column right-click" checked to be able to use the commands "Copy/Paste/Remove Comment". I wouldn't need the popup for Tags, because all functionality is available via toolbar button or the menu.

One side effect I observed is that I often open the Tags popup by mistake. I never had this problem with the Comments column because I have it located on the far right side of the list.

Would it be possible to have:

1) an Option/Tweak to only have the popup for the comments column
2) OR the "Copy/Paste/Remove Comment" commands under "Customize Keyboard Shortcuts - Miscellaneous"?

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

Re: Popup by Tag/Cmt column right-click

Post by admin »

Remind me later.

sandra
Posts: 11
Joined: 08 May 2010 11:23

Re: Popup by Tag/Cmt column right-click

Post by sandra »

Alright, thanks.

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

Re: Popup by Tag/Cmt column right-click

Post by TheQwerty »

You too can make option 2 happen today!

So here's a simple script file that contains items for:
  1. Copy Comment from...
    • Focused Item
    • Selected Item(s)
    • All Items in List
  2. Paste Clipboard As Comment for Selected Item(s)
  3. Remove Comment(s) from Selected Item(s)
Now you have a couple options to get it so you can assign keyboard shortcuts:
  1. Assign it to a User Defined Command (UDC) as a single "Run Script" or save it to a file and use the "Load Script File" UDC.

    And then you can assign that UDC a keyboard shortcut either in the UDC dialog or in Customize Keyboard Shortcuts. This will display a menu of the items which also have keyboard accelerators, so to Copy the focused comment you would use your custom keyboard shortcut and then press 'f'.
  2. You can take each script from the script file and assign them to different "Run Script" UDCs, and assign each one a shortcut key.

This thread may be of some help to you: http://www.xyplorer.com/xyfc/viewtopic.php?f=3&t=5750
Or just ask if that's not quite clear or working for you!

Code: Select all

/*############################################################################
##	Commentate.xys
##
##	Copy, Paste, or Remove Comments.
##
##    Author: TheQwerty
##	   Forum: http://www.xyplorer.com/xyfc/viewtopic.php?p=54118#p54118
##   Version: 20101103.0625
#############################################################################*/

"Copy &Focused Comment|:copy : copy"			CopyText Report('{Comment}', "<focitem>");
"Copy &Selected Comments|:copy : copySel"	CopyText Report("{Comment}<crlf>", 1);
"Copy &All Comments|:copy : copyAll"			CopyText Report("{Comment}<crlf>");
"-"	//-----------------------------------------------------------------------------
"&Paste Comment|:paste : paste"				Comment("<clipboard>");
"-"	//-----------------------------------------------------------------------------
"&Remove Comment|:del : remove"				Comment();
To see the attached files, you need to log into the forum.

sandra
Posts: 11
Joined: 08 May 2010 11:23

Re: Popup by Tag/Cmt column right-click

Post by sandra »

TheQwerty wrote:You too can make option 2 happen today!
Thank you, TheQwerty.

Because of your great description I was able to make it work in about 30 seconds. It's absolutely amazing. I had no idea that such things are already possible with so little effort (and a scripting genius, of course).

Again, thank you so much for your great help! :D

Post Reply