-
Notifications
You must be signed in to change notification settings - Fork 380
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
Add the ability to create tags when adding a tag to a file #262
Conversation
|
||
create_button = QPushButton(self) | ||
create_button.setFlat(True) | ||
create_button.setText(f"Create \"{query.replace("&", "&&")}\"") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: the label "Create " is slightly misleading, because it not only creates the tag, but it also assigns it straight away
f"border-color:{get_tag_color(ColorType.BORDER, "dark gray")};" | ||
f"border-radius: 6px;" | ||
f"border-style:solid;" | ||
f"border-width: {math.ceil(1*self.devicePixelRatio())}px;" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's the 1*
multiplying for?
Unify the tag widget appearance and remove unnecessary "*1" multiplication.
I've made some changes and implemented the feedback given here as well as in #1. |
Focus the save button on the Add Tag panel. This allows the user to promptly hit enter to add the tag as-is.
…use it is made obsolete by TagStudioDev#262. This reverts commit 6c82adc.
…Dev#262) * Add the ability to create tags when adding a tag to a file. * ui: unify tag widget appearance Unify the tag widget appearance and remove unnecessary "*1" multiplication. * refactor: change some var names & add docstrings * feat: edit panel is opened before adding tag * feat(ui): focus save button on add panel Focus the save button on the Add Tag panel. This allows the user to promptly hit enter to add the tag as-is. --------- Co-authored-by: bjorn-out <b.g.out@uva.nl> Co-authored-by: Travis Abendshien <46939827+CyanVoxel@users.noreply.github.com>
Closes #1
Ability to change further details for the newly created tag (like subtags) should be added. My suggestion would be to allow editing any tag in the search results by right-clicking. I tried to implement this, but did not get it to work yet.
I do believe the full tag creation modal should not pop-up by default, as this is frankly annoying when trying to tag many files manually. You can already use Ctrl + T or Cmd + T if you want to create a tag with more details, or use the aforementioned edit button once implemented.