Make some usability improvements; fix a bug

This commit is contained in:
No Time To Play 2024-01-30 13:37:50 +00:00
parent 68fa52618b
commit c87ea33ae3
3 changed files with 18 additions and 6 deletions

View File

@ -6,6 +6,14 @@
* Ability to use native file dialogs on X11 (via Zenity)
### Changed
* Moved some items to the View menu.
### Fixed
* Next and Done menu items
## [2.0 beta] - 2024-01-28
Forked from version 1.3.2

View File

@ -59,7 +59,7 @@ Application logic is unchanged, so it should still work, barring new bugs.
- Ctrl-F: Find text from the beginning.
- Ctrl-G: Find again from the last result.
- Ctrl-1 / Ctrl-2 / Ctrl-3: Set note status.
- F11: (hidden command) Toggle full screen mode.
- F11: Toggle full screen mode.
Other bindings are shown in the menus.

View File

@ -1038,7 +1038,7 @@ menu_item(m, "Quit", 0, "Ctrl-Q", handle_quit)
menubar.add_cascade(menu=m, label="File", underline=0)
m = Menu(menubar)
menu_item(m, "Clear", 0, "Escape", cancel_selection)
menu_item(m, "Clear", 2, "Escape", cancel_selection)
m.add_separator()
menu_item(m, "Cut", 0, "Ctrl-X", handle_cut)
menu_item(m, "Copy", 1, "Ctrl-C", handle_copy)
@ -1063,17 +1063,21 @@ menubar.add_cascade(menu=m, label="Note", underline=0)
m = Menu(menubar)
menu_item(m, "ToDo", 0, "Ctrl-1", lambda: set_note_status("TODO"))
menu_item(m, "Next", 0, "Ctrl-2", lambda: set_note_status("TODO"))
menu_item(m, "Done", 0, "Ctrl-3", lambda: set_note_status("TODO"))
menu_item(m, "Next", 0, "Ctrl-2", lambda: set_note_status("NEXT"))
menu_item(m, "Done", 0, "Ctrl-3", lambda: set_note_status("DONE"))
m.add_separator()
menu_item(m, "Reset", 0, "Ctrl-0", lambda: set_note_status(""))
m.add_separator()
menu_item(m, "Link...", 0, "Ctrl-L", set_note_link)
menu_item(m, "Go to site", 0, "Ctrl-H", go_to_site)
m.add_separator()
menubar.add_cascade(menu=m, label="Stat", underline=0)
m = Menu(menubar)
menu_item(m, "Fold all", 0, "Ctrl -", fold_all)
menu_item(m, "Unfold all", 0, "Ctrl +", unfold_all)
menubar.add_cascade(menu=m, label="Stat", underline=0)
m.add_separator()
menu_item(m, "Full screen", 10, "F11", full_screen)
menubar.add_cascade(menu=m, label="View", underline=0)
m = Menu(menubar, name="help")
menu_item(m, "About", 0, "F1", show_about)