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

Search and replace text in spot labels (Add plugin) #14

Open
maarzt opened this issue Apr 17, 2023 · 2 comments
Open

Search and replace text in spot labels (Add plugin) #14

maarzt opened this issue Apr 17, 2023 · 2 comments

Comments

@maarzt
Copy link
Contributor

maarzt commented Apr 17, 2023

User Story

Users would like to do "search and replace text" operations on spot labels.

Original Request

grafik

Possible implementation

The Mastodon menu should have a new menu entry "search and replace..." with also a short-cut.
Clicking the entry or pressing the short-cut should show a dialog:

  • Text field: search text
  • Text field: replace text
  • Drop down: beginning, ending, anywhere, complete label
  • Checkbox: select changed spots
  • "OK" and cancel buttons

When clicking OK the plugin searches for the given text in the spot label and replaces findings as specified.

Additional information

The GUI dialog related code could be kept really short by implementing the plugin as SciJava Command, see for example FilterOutSolists. It plugin should also implement the Cancelable interface. This will add a Cancel button to the dialog.

@stefanhahmann
Copy link
Collaborator

@maarzt what is meant with the Drop down options beginning, ending, anywhere, complete label?

@stefanhahmann
Copy link
Collaborator

@maarzt what is meant with the Drop down options beginning, ending, anywhere, complete label?

I just saw the original user request again and I think with this context, I now understand the drop down options. I added this request to the user story to make to more complete.

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

No branches or pull requests

2 participants