Skip to content

Commit

Permalink
🔀 Merge pull request #135 from davep/fix-footer
Browse files Browse the repository at this point in the history
Reinstate the commands shown in the footer
  • Loading branch information
davep authored Feb 4, 2025
2 parents dd86f3e + 68e8d8c commit 9377e9e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 17 deletions.
4 changes: 0 additions & 4 deletions src/braindrop/app/commands/collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,31 +10,27 @@ class SearchCollections(Command):
"""Search for a collection by name and show its contents"""

BINDING_KEY = "C"
SHOW_IN_FOOTER = False


##############################################################################
class ShowAll(Command):
"""Show all Raindrops"""

BINDING_KEY = "a"
SHOW_IN_FOOTER = False


##############################################################################
class ShowUnsorted(Command):
"Show all unsorted Raindrops"

BINDING_KEY = "u"
SHOW_IN_FOOTER = False


##############################################################################
class ShowUntagged(Command):
"""Show all Raindrops that are lacking tags"""

BINDING_KEY = "U"
SHOW_IN_FOOTER = False


### collection.py ends here
3 changes: 0 additions & 3 deletions src/braindrop/app/commands/filtering.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,13 @@ class ClearFilters(Command):
"""Clear all tags and other filters"""

BINDING_KEY = "f"
SHOW_IN_FOOTER = False


##############################################################################
class Search(Command):
"""Search for text anywhere in the raindrops"""

BINDING_KEY = "/"
SHOW_IN_FOOTER = False


##############################################################################
Expand All @@ -35,7 +33,6 @@ class SearchTags(Command):
"""Search for a tag and then filter with it"""

BINDING_KEY = "t, #"
SHOW_IN_FOOTER = False

active_collection: Raindrops = Raindrops()
"""The active collection to search within."""
Expand Down
8 changes: 4 additions & 4 deletions src/braindrop/app/commands/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,52 +10,51 @@ class ChangeTheme(Command):
"""Change the application's theme"""

BINDING_KEY = "f9"
SHOW_IN_FOOTER = False


##############################################################################
class CompactMode(Command):
"Toggle the compact mode for the Raindrop list"

BINDING_KEY = "f5"
SHOW_IN_FOOTER = True


##############################################################################
class Details(Command):
"""Toggle the view of the current Raindrop's details"""

BINDING_KEY = "f3"
SHOW_IN_FOOTER = True


##############################################################################
class Escape(Command):
"Back up through the panes, right to left, or exit the app if the navigation pane has focus"

BINDING_KEY = "escape"
SHOW_IN_FOOTER = False


##############################################################################
class Logout(Command):
"""Forget your API token and remove the local raindrop cache"""

BINDING_KEY = "f12"
SHOW_IN_FOOTER = False


##############################################################################
class Redownload(Command):
"Download a fresh copy of all data from raindrop.io"

BINDING_KEY = "ctrl+r"
SHOW_IN_FOOTER = False


##############################################################################
class TagOrder(Command):
"Toggle the tags sort order between by-name and by-count"

BINDING_KEY = "f4"
SHOW_IN_FOOTER = True


##############################################################################
Expand All @@ -65,6 +64,7 @@ class VisitRaindrop(Command):
COMMAND = "Visit raindrop.io"
BINDING_KEY = "f2"
FOOTER_TEXT = "raindrop.io"
SHOW_IN_FOOTER = True


### main.py ends here
6 changes: 0 additions & 6 deletions src/braindrop/app/commands/raindrop.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,47 +10,41 @@ class AddRaindrop(Command):
"""Add a new raindrop"""

BINDING_KEY = "n"
SHOW_IN_FOOTER = False


##############################################################################
class CheckTheWaybackMachine(Command):
"""Check if the currently-highlighted raindrop is archived in the Wayback Machine"""

BINDING_KEY = "w"
SHOW_IN_FOOTER = False


##############################################################################
class CopyLinkToClipboard(Command):
"""Copy the currently-highlighted link to the clipboard"""

BINDING_KEY = "c"
SHOW_IN_FOOTER = False


##############################################################################
class DeleteRaindrop(Command):
"""Delete the currently-highlighted raindrop"""

BINDING_KEY = "d, delete"
SHOW_IN_FOOTER = False


##############################################################################
class EditRaindrop(Command):
"""Edit the currently-highlighted raindrop"""

BINDING_KEY = "e"
SHOW_IN_FOOTER = False


##############################################################################
class VisitLink(Command):
"""Visit currently-highlighted link"""

BINDING_KEY = "v"
SHOW_IN_FOOTER = False


### raindrop.py ends here

0 comments on commit 9377e9e

Please sign in to comment.