22 Commits

Author SHA1 Message Date
Le Tan
574aa4e70a KeyboardLayout: support specifying keyboard layout mappings
Captain mode now supports different layout mappings.
2018-09-29 18:37:50 +08:00
Le Tan
9b83d50116 fix
- Selection style in mdhl does not work on macOS. Choose another Vim
visual line background.
- Disable multiple keyboard layout support on macOS.
- Make close_before_external_editor work when opening with default
program.
2018-09-21 19:41:07 +08:00
Le Tan
ffa413fa26 Captain: fix captain mode in diffrent keyboard layout 2018-09-02 15:21:25 +08:00
Le Tan
29c0701e6b Captain: exit captain mode before closeEvent() to avoid crash 2018-08-07 20:59:58 +08:00
Le Tan
d421a8577c support Universal Entry
`Ctrl+G` to call out the Universal Entry.
2018-03-28 19:35:38 +08:00
Le Tan
5e323cd9ab fix VCaptain to change avatar's border color on mode change 2017-12-04 20:39:14 +08:00
Le Tan
6c83f9bd04 refactor VCaptain to enable Captain mode with Input Method 2017-11-21 20:15:58 +08:00
Le Tan
93ba677116 magic-word: support overriding magic words
- Add %dt%, %note%, and %no%;
- Support overriding magic words with simple literal value;
2017-11-07 19:51:39 +08:00
Le Tan
a265aed035 bug-fix: insert code block inline if it is at the end of a space block 2017-10-23 21:49:53 +08:00
Le Tan
00feaa13e2 refactor Captain mode
- Configuration [shortcuts] and [captain_mode_shortcuts] for shortcuts
and shortcuts in Captain mode.
2017-10-18 19:54:15 +08:00
Le Tan
598e8144bb support custom startup pages
- Support continuing where user left off on startup;
    - Support recovering the edit/read mode and the anchor position;
- Support opening user-specified files on startup;
- Add config startup_page_type, startup_pages, and last_opened_files;
2017-10-11 10:44:18 +08:00
Le Tan
ace96c7ce2 support compact mode in main window
Add enable_compact_mode config.
2017-10-06 22:45:42 +08:00
Le Tan
fb4e818e20 refine attachment list
- Add shortcut Ctrl+E A to show attachment list;
- Add Vim-like navigation shortcut to attachment list;
- Support drag-and-drop to add attachments;
- Add bubble to indicate the number of attachments at the right top corner;
2017-09-26 19:27:47 +08:00
Le Tan
7a0a2c552b add shortcuts for note and folder management 2017-09-05 20:54:15 +08:00
Le Tan
85c09c296d refine VNote's log file in release mode
1. Add menu item "View Log" to view log file;
2. Add Captain mode shortcut "Ctrl+E ," to flush the log file;
2017-06-03 10:17:44 +08:00
Le Tan
32a7adb8d4 support viewing external orphan file
1. Add VOrphanFile for external local file;
2. Add doc file for shortcuts;
3. Ctrl+E ? to open the shortcuts doc;
2017-04-08 21:28:25 +08:00
Le Tan
ab824946e8 register VEditArea and VOutline for Navigation Mode
1. Register VEditArea and VOutline for Navigation mode;
2. Support Ctrl+J and Ctrl+K navigation in VOutline;
2017-04-06 19:39:52 +08:00
Le Tan
611a695cb1 register VFileList for Navigation Mode
Support Ctrl+J and Ctrl+K navigation in VFileList.
2017-04-05 23:36:16 +08:00
Le Tan
6e0f1d38b4 register VDirectoryTree for Navigation Mode 2017-04-04 22:40:44 +08:00
Le Tan
6a5fecf8ef Add Navigation Mode to Captain Mode
In Captain Mode, W will trigger the Navigation Mode. In this mode,
registered widgets will display some characters for hints and after user
pressing the the keys, corresponding widget will take action as response.

For now, only VNotebookSelector registers in the Navigation Mode.
2017-04-04 18:02:47 +08:00
Le Tan
0a91037f71 Num keys in Captain mode to switch to given edit tab
1. Num keys 1 - 9 will activate the specified sequence edit tab;
2. Num key 0 will alternate between the current and last tab;
2017-04-04 13:21:51 +08:00
Le Tan
3406eab29c Captain mode 2017-03-27 19:44:23 +08:00