Skip to content

Commit

Permalink
NEW: Aliases for setting the image/directory order
Browse files Browse the repository at this point in the history
If not desired this can be undone
  • Loading branch information
jcjgraf committed May 9, 2021
1 parent 9fa8150 commit c262a33
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion vimiv/commands/aliases.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,14 @@

_aliases: Dict[api.modes.Mode, Aliases] = {mode: {} for mode in api.modes.ALL}
# Add default aliases
_aliases[api.modes.GLOBAL].update({"q": "quit", "mark-print": "print-stdout %m"})
_aliases[api.modes.GLOBAL].update(
{
"q": "quit",
"mark-print": "print-stdout %m",
"order-images-by": "set image_order",
"order-directories-by": "set directory_order",
}
)
_aliases[api.modes.IMAGE].update(w="write", wq="write && quit")


Expand Down

0 comments on commit c262a33

Please sign in to comment.