topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday March 28, 2024, 5:20 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

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

Herchi

  • Participant
  • Joined in 2014
  • *
  • Posts: 11
    • View Profile
    • Donate to Member
what is it the order in a 'popup hotkey'?
« on: September 23, 2016, 06: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,959
    • View Profile
    • Donate to Member
Re: what is it the order in a 'popup hotkey'?
« Reply #1 on: September 23, 2016, 10:48 AM »
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
    • View Profile
    • Donate to Member
Re: what is it the order in a 'popup hotkey'?
« Reply #2 on: September 23, 2016, 03: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
    • View Profile
    • Donate to Member
Re: what is it the order in a 'popup hotkey'?
« Reply #3 on: October 08, 2016, 03:58 PM »
nobody?  :-\

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: what is it the order in a 'popup hotkey'?
« Reply #4 on: October 08, 2016, 08:23 PM »
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,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: what is it the order in a 'popup hotkey'?
« Reply #5 on: October 08, 2016, 08:36 PM »
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
    • View Profile
    • Donate to Member
Re: what is it the order in a 'popup hotkey'?
« Reply #6 on: November 04, 2016, 06:26 AM »
the answer will be:
'Title DESC' in Custom Menu Sorting SQL. I find out now


thank you anyway