Rename 'xdg-open' action to 'open'.

- Debian is renaming xdg-open to open.
- Rename 'orient' to 'turn'.
This commit is contained in:
Andrew Hamilton 2021-09-23 23:17:04 +10:00
parent e76d0bd03d
commit 42bf4d2582
4 changed files with 11 additions and 11 deletions

View file

@ -73,7 +73,7 @@ KEYS_DOC = """Keys:
tab - Change the focus between summary and result pane.
q, esc - Quit.
h - Show the help screen. (toggle)
o - Orient the result pane as portrait or landscape. (toggle)
t - Turn the result pane to portrait or landscape. (toggle)
l - Show the activity log. (toggle)
e - Edit the current file with an editor defined by -e, $EDITOR or $VISUAL.
n - Move to the next issue.
@ -82,7 +82,7 @@ KEYS_DOC = """Keys:
r - Refresh the currently selected report.
R - Refresh all reports of the current tool.
f - Resize the focused pane to the full screen. (toggle)
x - Open the current file with xdg-open.
o - Open the current file with xdg-open.
"""
@ -985,8 +985,8 @@ class Screen:
"line " + str(y+1))
_STATUS_BAR = highlight_chars(
" *help *quit *t*a*b:focus *orient *log *edit *next *sort"
" *refresh *fullscreen *xdg-open", Log._GREEN_STYLE)
" *help *quit *t*a*b:focus *turn *log *edit *next *sort"
" *refresh *fullscreen *open", Log._GREEN_STYLE)
@functools.lru_cache()
def _get_partial_bar_chars(self, bar_transparency):
@ -1037,7 +1037,7 @@ class Screen:
else fill3.appearance_resize(result, dimensions))
_KEY_MAP = {
"o": toggle_window_orientation, "l": toggle_log, "h": toggle_help,
"t": toggle_window_orientation, "l": toggle_log, "h": toggle_help,
terminal.UP_KEY: cursor_up, terminal.DOWN_KEY: cursor_down,
terminal.LEFT_KEY: cursor_left, terminal.RIGHT_KEY: cursor_right,
terminal.PAGE_DOWN_KEY: cursor_page_down,
@ -1046,7 +1046,7 @@ class Screen:
"n": move_to_next_issue, "N": move_to_next_issue_of_tool,
"e": edit_file, "q": quit_, terminal.ESC: quit_, "r": refresh,
"R": refresh_tool, "\t": toggle_focus, "f": toggle_fullscreen,
"x": xdg_open}
"o": xdg_open}
def setup_inotify(root_path, loop, on_filesystem_event, exclude_filter):

View file

@ -14,7 +14,7 @@
│ tab - Change the focus between summary and result pane. │
│ q, esc - Quit. │
│ h - Show the help screen. (toggle) │
o - Orient the result pane as portrait or landscape. (toggle)
t - Turn the result pane to portrait or landscape. (toggle)
│ l - Show the activity log. (toggle) │
│ e - Edit the current file with an editor defined by -e, $EDITOR or $VISUAL. │
│ n - Move to the next issue. │
@ -23,7 +23,7 @@
│ r - Refresh the currently selected report. │
│ R - Refresh all reports of the current tool. │
│ f - Resize the focused pane to the full screen. (toggle) │
x - Open the current file with xdg-open. │
o - Open the current file with xdg-open. │
│ │
│Statuses: │
  Ok │
@ -57,4 +57,4 @@
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────────────────────────┘
 help quit tab:focus orient log edit next sort refresh fullscreen xdg-open 
 help quit tab:focus turn log edit next sort refresh fullscreen open 

View file

@ -57,4 +57,4 @@
│ ││ │
│ ││ │
└────────────────────────────────────┘└────────────────────────────────────────────────────────────┘
 help quit tab:focus orient log edit next sort refresh fullscreen xdg-open 
 help quit tab:focus turn log edit next sort refresh fullscreen open 

View file

@ -57,4 +57,4 @@
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────────────────────────┘
 help quit tab:focus orient log edit next sort refresh fullscreen xdg-open 
 help quit tab:focus turn log edit next sort refresh fullscreen open