textfile-viewer: add json-beautifier; closes #794

This commit is contained in:
ed
2025-12-02 17:05:21 +00:00
parent fd8c5bfcbc
commit 89cab5b520
21 changed files with 126 additions and 13 deletions

View File

@@ -113,6 +113,8 @@ Ls.hmn = {
["M", "close textfile"],
["E", "edit textfile"],
["S", "select file (for cut/copy/rename)"],
["Y", "download textfile"],
["⇧ J", "beautify json"],
]
],
@@ -252,6 +254,7 @@ Ls.hmn = {
"ct_ttips": '◔ ◡ ◔"> tooltips',
"ct_thumb": 'in grid-view, toggle icons or thumbnails$NHotkey: T">🖼️ thumbs',
"ct_csel": 'use CTRL and SHIFT for file selection in grid-view">sel',
"ct_dl": 'force download (don\'t display inline) when a file is clicked">dl',
"ct_ihop": 'when the image viewer is closed, scroll down to the last viewed file">g⮯',
"ct_dots": 'show hidden files (if server permits)">dotfiles',
"ct_qdel": 'when deleting files, only ask for confirmation once">qdel',
@@ -478,6 +481,7 @@ Ls.hmn = {
"tvt_prev": "show previous document$NHotkey: i\">⬆ prev",
"tvt_next": "show next document$NHotkey: K\">⬇ next",
"tvt_sel": "select file   ( for cut / copy / delete / ... )$NHotkey: S\">sel",
"tvt_j": "beautify json$NHotkey: shift-J\">j",
"tvt_edit": "open file in text editor$NHotkey: E\">✏️ edit",
"tvt_tail": "monitor file for changes; show new lines in real time\">📡 follow",
"tvt_wrap": "word-wrap\">↵",