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] Different actions in different locations #184

Closed
1 task done
mjthoraval opened this issue Nov 7, 2023 · 4 comments
Closed
1 task done

[Feature] Different actions in different locations #184

mjthoraval opened this issue Nov 7, 2023 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@mjthoraval
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Environment

  • OS: Windows 10
  • Zotero Version: 7.0.0-beta.49+1bb6722c4 (64-bit)
  • Plugin Version: 1.0.0-23

Describe the feature request

Is your feature request related to a problem? Please describe.
I would like to use different actions in different locations.
For example, right-clicks from:

  • Tab title of PDF reader
  • Collection
  • Annotation in the PDF reader
  • Item
  • Metadata
  • Notes

Why do you need this feature?
I would like to use different actions in different locations.
For example:

  • A right-click on a collection would let me copy the link to the collection
  • A right-clik on an annotation would let me copy the link to that annotation

At the moment, I still see actions like Related selected items from the PDF viewer, which is not useful and wasting space.

Describe the solution you'd like

The solution you'd like
It should be possible to write actions for some specific menus.

Alternatives you've considered
For example, Zutilo has Collection menu functions

Anything else?

No response

@mjthoraval mjthoraval added the enhancement New feature or request label Nov 7, 2023
@windingwind
Copy link
Owner

How should we distinguish them? I do not want to add another column in the action editor

@mjthoraval
Copy link
Author

The easiest way I guess would be to put these options in the Edit Action popup window when editing an action. They do not need to appear in the table displayed in the main settings of the plugin in the Zotero Settings window.
This could be done for example with tick boxes, either directly at the bottom of the window, or (probably better) inside a popup window, so that it doesn't clutter the interface in the Edit Action window.

One alternative would be to move these settings to a separate window for all actions, accessible directly from the main settings page of the pugin. If the user is happy with the default settings, then he does not even need to worry about these advanced settings.
The advantage is that you can handle the settings of all actions at the same time.
However, creating an action for a specific menu becomes more complicated: you need to create the action first, and then go to the menus settings in a different window to specify for which menu it should apply.

[Or it could be both of these first two solutions at the same time.]

Another alternative would be to create a separate list of action for each menu (a separate table in the main settings page).
But this will probably be more complicated, since you would have to duplicate actions that need to be in several menus at the same time.

Here is what the Zutilo settings look like to give some ideas:
image

image

image

@windingwind
Copy link
Owner

@mjthoraval
Copy link
Author

Thank you very much!

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

No branches or pull requests

2 participants