DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: what is it the order in a 'popup hotkey'?  (Read 7,977 times)

Herchi

  • Participant
  • Joined in 2014
  • *
  • Posts: 11
what is it the order in a 'popup hotkey'?
« on: September 23, 2016, 11:52 AM »
I have some groups with a popup hotkey assigned. I don't understand the order it shows me the list. I want to reorder or set this order. Is it random?

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,970
    • Gathering Badge
    • Participated in NANY Challenge Once
Re: what is it the order in a 'popup hotkey'?
« Reply #1 on: September 23, 2016, 03:48 PM »
This should get you started at least:

Open CHS main window, right-click on the group in the tree on the left.
Select 'Edit group'

'Custom menu sorting SQL' down at the bottom controls the sort. Being able to speak/write SQL helps (I dont myslef).

Tom

Herchi

  • Participant
  • Joined in 2014
  • *
  • Posts: 11
Re: what is it the order in a 'popup hotkey'?
« Reply #2 on: September 23, 2016, 08:39 PM »
This should get you started at least:

Open CHS main window, right-click on the group in the tree on the left.
Select 'Edit group'

'Custom menu sorting SQL' down at the bottom controls the sort. Being able to speak/write SQL helps (I dont myslef).

I know SQL but....
SELECT ¿A? FROM ¿B? ORDER BY ¿C?
I want to:
1) alphabetize
2) order by title

Herchi

  • Participant
  • Joined in 2014
  • *
  • Posts: 11
Re: what is it the order in a 'popup hotkey'?
« Reply #3 on: October 08, 2016, 08:58 PM »
nobody?  :-\

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: what is it the order in a 'popup hotkey'?
« Reply #4 on: October 09, 2016, 01:23 AM »
Hi Herchi.

Ok let me make sure I understand what you are interested in.

Are you saying you have a hotkey set to show the contents of one of your clip groups?  So you right-clicked on a group in the lefthand group panel and set a hotkey for that group.

Now you trigger the hotkey and you see a list of clips in that group in a pop-up menu.

And what you want is to be able to control the order of the clips that show up in that pop-up menu, is that right?

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: what is it the order in a 'popup hotkey'?
« Reply #5 on: October 09, 2016, 01:36 AM »
By default, the popup menus are sorted according to the column labeled "Ordering".  If you can't see that column you can turn it on by clicking the tiny button to the left of the ID column:
Screenshot - 10_8_2016 , 8_33_26 PM.png

Once you have the Ordering column turned on, you can fill it with values.  By default, and somewhat unintuitively I admit, it's going to sort with highest values at top.  So give the items in that group higher values in the Ordering column to make them show at the top of the menu.  New clips always have blank Ordering values (equivalent to a value of 0) -- that column is there just for you to specify custom values when you manually control sort order.  You can use negative values.

You can also change how the group is sorted in popup menus, and instead of sorting on the Ordering column, have it sort on something else.  If you check out the "Quick Paste" group you'll see it has it's sorting option set to "Ordering,ModificationDateTime" so that any explicit Ordering comes first, and then sorts on ModificationDateTime which is a pretty good way to go.  I believe this is actually the sorting option used if you leave the "Sorting" option of a group blank -- so that is probably the ordering you are seeing now in your popup menus.

Does that help?

Herchi

  • Participant
  • Joined in 2014
  • *
  • Posts: 11
Re: what is it the order in a 'popup hotkey'?
« Reply #6 on: November 04, 2016, 11:26 AM »
the answer will be:
'Title DESC' in Custom Menu Sorting SQL. I find out now


thank you anyway

Original address: https://www.donationcoder.com/forum/index.php?topic=43047.0