Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: apply Display Commands to the tray menu items #79

Closed
jkatnik opened this issue Oct 10, 2023 · 1 comment · Fixed by hluk/CopyQ#2566
Closed

feature request: apply Display Commands to the tray menu items #79

jkatnik opened this issue Oct 10, 2023 · 1 comment · Fixed by hluk/CopyQ#2566

Comments

@jkatnik
Copy link

jkatnik commented Oct 10, 2023

Hello,

is it possible to apply Display Command to items in the tray menu?
I'd like to mask all items starting with some prefix.
E.g. items starting with 'S$' should be displayed in the tray menu as 'Masked Password'.

The below Command works as expected in the main CopyQ window, but it doesn't in the tray menu.

copyq:
const textData = str(data(mimeText));
const passwordPrefix = 'S$';

if (textData.startsWith(passwordPrefix)) {
  setData('text/plain', 'Masked Password');
}

image

Cheers
Jarek

@jkatnik jkatnik changed the title feature request: Display Command for tray menu feature request: Display Command for the tray menu items Oct 10, 2023
@jkatnik jkatnik changed the title feature request: Display Command for the tray menu items feature request: apply Display Commands to the tray menu items Oct 10, 2023
hluk added a commit to hluk/CopyQ that referenced this issue Dec 9, 2023
hluk added a commit to hluk/CopyQ that referenced this issue Dec 9, 2023
In the display command, the format stored in `mimeDisplayItemInMenu`
indicates whether the display item data are related to a menu item
instead of an item list.

Fixes hluk/copyq-commands#79
hluk added a commit to hluk/CopyQ that referenced this issue Dec 9, 2023
In the display command, the format stored in `mimeDisplayItemInMenu`
indicates whether the display item data are related to a menu item
instead of an item list.

Fixes hluk/copyq-commands#79
hluk added a commit to hluk/CopyQ that referenced this issue Dec 10, 2023
In the display command, the format stored in `mimeDisplayItemInMenu`
indicates whether the display item data are related to a menu item
instead of an item list.

Fixes hluk/copyq-commands#79
hluk added a commit to hluk/CopyQ that referenced this issue Dec 10, 2023
In the display command, the format stored in `mimeDisplayItemInMenu`
indicates whether the display item data are related to a menu item
instead of an item list.

Fixes hluk/copyq-commands#79
@hluk
Copy link
Owner

hluk commented Dec 10, 2023

Thanks for the suggestion. This will be possible in the next CopyQ release (#2566).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants