forked from darxtrix/ptop
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issue darxtrix#32 - separated keyboard shortcuts in a JSON file
The shortcuts are now in a JSON file. The file contains the shortcut key, the name of the method in Python and the name to show to the user.
- Loading branch information
Showing
2 changed files
with
68 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[ | ||
["^N", "sort_by_memory", "Memory Sort"], | ||
["^T", "sort_by_time", "Time Sort"], | ||
["^K", "kill_process", "Kill"], | ||
["^Q", "quit", "Quit"], | ||
["^R", "reset", "Reset"], | ||
["^L", "show_detailed_process_info", "Process Info"], | ||
["^F", "do_process_filtering_work", "Filter"], | ||
["g", "", "Top"] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters