Xianzhong Wang
5eb8c4d224
[function] Support to remove header sequence when disable it ( #243 )
...
* [function] Support to remove header sequence when disable it
spec:
In edit mode:
- when click icon to enable auto sequence, add sequence immediately
- when click icon to disable auto sequence, remove already added sequence
In preview/read mode:
- auto sequence icon should be unchecked and disabled
For readonly file, always disable the auto sequence icon.
* [bugfix] Do not let auto sequence ruin the undo history
All the header sequence auto-update should be treated as one edit action.
So that user can undo auto-update by pressing undo twice.
(One undo for the auto-update change, and one for the original header change)
* Refactor and reformat according to PR feedback
2018-05-19 09:56:14 +08:00
Le Tan
ccaaeeef87
bug-fix: VMdTab does not scroll to the correct header in edit mode
...
This is introduced after replacing QStackedLayout with QSplitter.
2018-05-04 20:37:57 +08:00
Le Tan
bab0140c9f
use QWebEnginePage::linkHovered instead
2018-05-04 20:37:40 +08:00
Le Tan
960426579b
show hovered link in status line in read mode
2018-04-27 20:35:58 +08:00
Le Tan
adacaef1c7
bug-fix: can not jump to the correct header when first enter edit mode
2018-04-27 20:35:45 +08:00
Le Tan
a4ab2ae671
restore current edit tab and cursor position info at startup
2018-04-20 19:55:42 +08:00
Le Tan
108ff1543c
make discard action the default one when DiscardAndExit
2018-04-18 20:55:28 +08:00
Le Tan
aa5960f974
preview non-codeblock MathJax
2018-04-18 20:55:14 +08:00
Le Tan
10e2bba7f6
support Mermaid and Flowchart.js preview
...
Mermaid preview is disabled for some issues.
2018-04-12 19:31:13 +08:00
Le Tan
cfcc7e5494
support in place preview and live preview of code blocks
2018-04-10 20:58:07 +08:00
Le Tan
c6b7561864
VMdTab: live preview
2018-04-10 20:58:07 +08:00
Le Tan
051088be31
VMdTab: use splitter instead of tab layout to hold editor and web view
...
Prepare for live preview.
2018-04-10 20:58:07 +08:00
Le Tan
26a7f40f36
VMdTab: discard backup file directly when it is identical
2018-04-02 20:38:13 +08:00
Le Tan
9710659a00
support word count
2018-03-06 19:33:40 +08:00
Le Tan
3bee0365e9
support SavePage action in reading mode
2018-03-01 20:19:38 +08:00
Le Tan
ed44ec4ee8
bug-fix: use second accuracy to detect file change outside
2018-02-26 19:30:44 +08:00
Le Tan
60635fe5e7
export: support custom background, style
2018-02-23 19:54:07 +08:00
Le Tan
06cac36412
support Vim command mode in read mode
2018-01-21 14:27:49 +08:00
Le Tan
333be910cc
enalbe Vim cmd line for searching in read mode
2018-01-19 21:56:21 +08:00
Le Tan
b927a525e2
decouple VVimIndicator and VVimCmdLineEdit
2018-01-19 19:29:34 +08:00
Le Tan
1d2183d44e
VMdEditor: support zoom in/out
2018-01-05 21:27:09 +08:00
Le Tan
2f1971476d
VMdEditor: support copy selected text as HTML
2018-01-04 13:27:42 +08:00
Le Tan
3f3a0e8513
VMdTab: do not change the cursor if it is below the right title when entering the read mode
2018-01-02 20:42:08 +08:00
Le Tan
03122a24db
bug-fix: fix images when cutting files
...
1. De-duplicate the images occur multiple times in the note;
2. Refresh the read mode and edit mode preview after the directory path
change;
3. Update init images and inserted images after the directory path
change;
2017-12-21 21:02:56 +08:00
Le Tan
7fd5ec26e5
bug-fix: restore header from edit mode after web side logic is ready
2017-12-21 21:02:56 +08:00
Le Tan
4b32fca9b5
themes: add v_moonlight theme for dark mode
2017-12-16 20:18:51 +08:00
Le Tan
49811cabc0
VTextDocumentLayout: support cursor line block background
2017-12-08 19:31:19 +08:00
Le Tan
23cae5a68c
show editor first before beginEdit()
2017-12-04 20:37:17 +08:00
Le Tan
262c6acfd9
support themes
2017-12-03 16:14:13 +08:00
Le Tan
cb6338ecf6
add heading tool button
2017-11-24 19:56:41 +08:00
Le Tan
8ab8b3d83a
bug-fix
...
- Set proper defalut focus of VInsertLinkDialog;
- Fix bug in snippet when selection mark is empty;
- Focus editor after double-click applying a snippet;
2017-11-20 19:29:14 +08:00
Le Tan
7e18374b93
fix build warnings
2017-11-19 14:55:31 +08:00
Le Tan
e6ce66ec7d
support backup file
...
Add configs:
- backup_directory
- backup_extension
- enable_backup_file
2017-11-17 19:49:14 +08:00
Le Tan
141b404240
support file change check
2017-11-16 11:34:13 +08:00
Le Tan
0a97b2480d
snippet: support Ctrl+E S to insert snippets
2017-11-14 21:40:39 +08:00
Le Tan
6ac33d2bd0
support snippets
...
Shortcuts are not supported yet.
2017-11-11 08:09:22 +08:00
Le Tan
404b5329a1
replace VEdit and VMdEdit with VEditor and VMdEditor
2017-10-26 19:36:12 +08:00
Le Tan
73ee02d3b2
support editing read-only files
2017-10-22 21:26:39 +08:00
Le Tan
e66b70b6ff
support Insert Link tool bar button
...
Support Ctrl+L to insert a link.
2017-10-19 19:42:50 +08:00
Le Tan
92bc044cac
metaword: support Ctrl+E M in editor to evaluate metawords
...
Add shortcut configuration MagicWord.
2017-10-19 19:41:57 +08:00
Le Tan
ea05c268b3
remove obsolete title mark when inserting title mark
2017-10-13 19:40:35 +08:00
Le Tan
2b299ff9b7
refine heading sequence
...
1. add toolbar button to enable/disable heading sequence of current
note temporary;
2. Support independent configuration for external files;
3. Change enable_heading_sequence configuration to heading_sequence_type;
2017-10-13 07:23:25 +08:00
Le Tan
183b24915a
refactor outline logics
2017-10-13 07:10:04 +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
59d0e82e66
refactor retrivePath to fetchPath
2017-09-07 20:33:38 +08:00
Le Tan
73630448a6
move vconfig to a local variable
2017-08-29 09:40:28 +08:00
Le Tan
226263f77c
bug-fix: save wrong geometry state in single panel view
2017-07-21 22:09:40 +08:00
Le Tan
301879c50c
edit-tab: init editor at the first time entering edit mode
...
Do not init the editor if we just open a note in read mode to speed up.
2017-07-10 13:23:07 +08:00
Le Tan
f9f7a365f8
add toolbar for text editing
...
Bold, italic, underline, strikethrough, inline code.
Underline and strikethrough are not implemented yet.
2017-07-04 14:07:48 +08:00
Le Tan
5c17f74641
add indicator in status bar for edit tab
2017-06-21 20:01:33 +08:00