Skip to content

Commit

Permalink
refac: config: Change default symbol for esc key
Browse files Browse the repository at this point in the history
- Change: Change the default symbol for `esc` key from `⎋` (U+238B) to
  `ESC`, for all context actions assigned the key by default.

  The former is not so intuitive.
  • Loading branch information
AnonymouX47 committed May 26, 2024
1 parent 6cc0e34 commit 21b16f3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions default-termvisage.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
"full-image": {
"Restore": [
"esc",
"\u238b"
"ESC"
],
"Delete": [
"d",
Expand All @@ -144,7 +144,7 @@
"full-grid-image": {
"Back": [
"esc",
"\u238b"
"ESC"
]
},
"confirmation": {
Expand All @@ -154,13 +154,13 @@
],
"Cancel": [
"esc",
"\u238b"
"ESC"
]
},
"overlay": {
"Close": [
"esc",
"\u238b"
"ESC"
]
}
}
Expand Down
8 changes: 4 additions & 4 deletions src/termvisage/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ def update_context_nav(
"Bottom": ["end", "", "Jump to the bottom of the grid"],
},
"full-image": {
"Restore": ["esc", "\u238b", "Exit maximized view"],
"Restore": ["esc", "ESC", "Exit maximized view"],
"Prev": ["left", "", "Move to the previous image"],
"Next": ["right", "", "Move to the next image"],
"Delete": ["d", "d", "Delete current image"],
Expand All @@ -723,14 +723,14 @@ def update_context_nav(
],
},
"full-grid-image": {
"Back": ["esc", "\u238b", "Back to grid view"],
"Back": ["esc", "ESC", "Back to grid view"],
},
"confirmation": {
"Confirm": ["enter", "\u23ce", ""],
"Cancel": ["esc", "\u238b", ""],
"Cancel": ["esc", "ESC", ""],
},
"overlay": {
"Close": ["esc", "\u238b", ""],
"Close": ["esc", "ESC", ""],
"Up": ["up", "", "Scroll up"],
"Down": ["down", "", "Scroll down"],
"Page Up": ["page up", "", "Scroll up one page"],
Expand Down

0 comments on commit 21b16f3

Please sign in to comment.