Copyq: Select item with given id does not work

Created on 22 Jan 2014  路  5Comments  路  Source: hluk/CopyQ

"Type any number to select item with given id." as mentioned in the README.md does not work for me with Windows 7 x64 and CopyQ 2.0.0. Instead the search/filter is shown.

bug

Most helpful comment

workaround with autoKey

if i inside copyQ i use shortcut Ctrl+g to start this python.
it copy numer to clipboard and sends it.

winTitle = window.get_active_title()
ok, text = dialog.input_dialog("Line ", "Choose line number ", default='10')
time.sleep(.1)
if winTitle != "AutoKey":   
    myCmd = 'copyq select ' + text # works :) 
    os.system(myCmd)
    keyboard.send_keys("<ctrl>+v")
    quit()

i use

File (Alt+F) > Preference (P) > Appearance (A) > show number

File (Alt+F) > Preference (P) > Appearance (A) > forest (its with numers)

was found by using copyQ --help

complet script

All 5 comments

True, I completely forgot about this feature so it doesn't work now -- nice find. Should I keep it in? Is it useful?

I for instance use only the search/filter and without this feature it is even possible to seach/filter for numbers. So i don't need it.

It's possible to search for numbers but with that feature it may be a little tricky.

I'll remove the "jump to Nth item" feature since you were the first to find out it doesn't work :).

My hit list is numbered. How can I select a match by number?

I suggest you type in the number in the search bar. and as long as nothing else is typed in, the number is the same as the line number. Of course only if it is a numbered list.

workaround with autoKey

if i inside copyQ i use shortcut Ctrl+g to start this python.
it copy numer to clipboard and sends it.

winTitle = window.get_active_title()
ok, text = dialog.input_dialog("Line ", "Choose line number ", default='10')
time.sleep(.1)
if winTitle != "AutoKey":   
    myCmd = 'copyq select ' + text # works :) 
    os.system(myCmd)
    keyboard.send_keys("<ctrl>+v")
    quit()

i use

File (Alt+F) > Preference (P) > Appearance (A) > show number

File (Alt+F) > Preference (P) > Appearance (A) > forest (its with numers)

was found by using copyQ --help

complet script

Was this page helpful?
0 / 5 - 0 ratings