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

Tweak search tags command #71

Merged
merged 4 commits into from
Jan 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
- Fixed title and excerpt content not fully showing if there was text
wrapped in square brackets within them.
([#64](https://github.com/davep/braindrop/issues/64))
- Added <kbd>#</kbd> as an alternative key for pulling up the tag search in
the command palette. ([#71](https://github.com/davep/braindrop/pull/71))

## v0.4.0

Expand Down
6 changes: 3 additions & 3 deletions src/braindrop/app/commands/filtering.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

##############################################################################
class ClearFilters(Command):
"""Clear all tags and other filters."""
"""Clear all tags and other filters"""

BINDING_KEY = "f"
SHOW_IN_FOOTER = False
Expand All @@ -29,9 +29,9 @@ class Search(Command):
##############################################################################
@dataclass
class SearchTags(Command):
"""A message that requests that the tag-based command palette is shown"""
"""Search for a tag and then filter with it"""

BINDING_KEY = "t"
BINDING_KEY = "t, #"
SHOW_IN_FOOTER = False

active_collection: Raindrops = Raindrops()
Expand Down
Loading