1
0
mirror of https://codeberg.org/cage/tinmop/ synced 2024-12-26 00:02:34 +01:00

- printed a minimal list of keychords on the welcome window.

This commit is contained in:
cage 2022-02-18 21:28:48 +01:00
parent a8e94545bd
commit 5f1fab5926
3 changed files with 21 additions and 13 deletions

View File

@ -50,7 +50,7 @@ For bug report please point your browser to:
(define-constant +welcome-message+ (define-constant +welcome-message+
(format nil (format nil
" "[ Note: this window can be scrolled using using and ]
_______ _______
/_ __(_)___ ____ ___ ____ ____ /_ __(_)___ ____ ___ ____ ____
/ / / / __ \\/ __ `__ \\/ __ \\/ __ \\ / / / / __ \\/ __ `__ \\/ __ \\/ __ \\
@ -59,11 +59,12 @@ For bug report please point your browser to:
/_/ /_/
Welcome to ~a! A gemini, pleroma and kami client. Welcome to ~a! A gemini, pleroma and kami client.
- for available keychords (sequence of keys to fire a command) help type '?'; - for available keychords (sequence of keys to fire a command) help type '?';
- for searching in the help type: 'C-h a' (control and 'h' keys toghether, then 'a'); - for searching in the help type: 'C-h a' (control and 'h' keys together, then 'a');
[if this keychords does not works, ask to your system administrator] [if this keychords does not works, ask to your system administrator]
- documentation is available in man format. Type 'man tinmop' at shell's prompt - documentation is available in man format. Type 'man tinmop' at shell's prompt
@ -74,22 +75,31 @@ Welcome to ~a! A gemini, pleroma and kami client.
- if you need more help or for bug report: ~a - if you need more help or for bug report: ~a
(collaborations are welcome too!). (collaborations are welcome too!).
Some useful keybinding to start (manpage contains the full list): Some useful keycords to start (the man page contains the full list):
· general use
- 'q' quit program
- '/' search
· gemini · gemini
- '>' open URL (also kami is supported) - '>' open URL (also kami is supported)
- 'l' open link window - 'l' open link window
- 'b' go back in history of visited URLs - 'b' go back in history of visited URLs
- '!' search geminispace (contacts gemini://geminispace.info/search) - '!' search geminispace (contacts gemini://geminispace.info/search)
· pleroma · pleroma
- 'C-t u' update current timeline - 'C-t u' update current timeline
- 'C-t c' change timeline - 'C-t c' change timeline
- 'v' view post's attachments
- 'l' open a window containing the links in the post
· kamid · kamid
- 'newline' open node - 'newline' open node
- 'e' edit node - 'e' edit node
- 'd' download file - 'd' download file
- 'u' upload file - 'u' upload file
- 'M-u' mirror local tree on server
- 'M-d' mirror remote tree on local computer
Enjoy! Enjoy!

View File

@ -540,6 +540,7 @@ will fire the `callback' function (with the selected field from `all-fields'
((string= c "^J") ((string= c "^J")
(let ((selected-fields (selected-row-fields high-level-window)) (let ((selected-fields (selected-row-fields high-level-window))
(selected-text (selected-text (selected-row high-level-window)))) (selected-text (selected-text (selected-row high-level-window))))
(funcall callback selected-text selected-fields)))) (when callback
(funcall callback selected-text selected-fields)))))
(draw)) (draw))
(win-close high-level-window)))) (win-close high-level-window))))

View File

@ -1716,15 +1716,12 @@ certificate).
(defun show-welcome-window () (defun show-welcome-window ()
"Show an informative window about this program" "Show an informative window about this program"
(let ((lines (text-utils:split-lines +welcome-message+)) (let ((lines (text-utils:split-lines +welcome-message+)))
(bg (swconf:win-bg swconf:+key-help-dialog+)) (line-oriented-window:make-blocking-list-dialog-window *main-window*
(fg (swconf:win-fg swconf:+key-help-dialog+))) lines
(windows:make-blocking-message-dialog *main-window* lines
nil nil
(_ " Welcome ") (_ " Welcome "))))
lines
bg
fg)))
(defun reset-timeline-pagination () (defun reset-timeline-pagination ()
"Removes the pagination data for current timeline and folder "Removes the pagination data for current timeline and folder