18 Commits

Author SHA1 Message Date
Le Tan
bed6a0d234 support mermaid diagram 2017-03-22 14:18:00 +08:00
Le Tan
d47dd92f59 refine markdown render logics
Add common templates markdown_template.html and
markdown_template.js.

Hoedow provides hoedown.js.
Marked provides marked.js.
2017-03-20 20:45:17 +08:00
Le Tan
b0f7add1bb add editor_font_size in vnote.ini
Change default editor font size to 12.
2017-03-17 21:54:16 -07:00
Le Tan
238983ed0d refine all messages 2017-02-27 22:30:35 +08:00
Le Tan
c83fcf6ce9 add settings dialog and language setting
Add VSettingsDialog to show a settings dialog.
For now, VNote supports setting of language.
Add imcomplete Chinese support.

Signed-off-by: Le Tan <tamlokveer@gmail.com>
2017-02-26 17:13:52 +08:00
Le Tan
901c477705 utilize ExtraSelection for special highlighting
1. Highlight current line;
2. Highlight selected word;
3. Highlight searched word;

Signed-off-by: Le Tan <tamlokveer@gmail.com>
2017-01-12 21:00:06 +08:00
Le Tan
3005d9bf5c implement Find/Replace logics
Supports Find/Replace in both edit and preview modes.

Signed-off-by: Le Tan <tamlokveer@gmail.com>
2017-01-08 21:09:00 +08:00
Le Tan
768c1632b0 save and restore the sate of the main splitter
Add a config "main_splitter_state" to store the state of the main
splitter.

Signed-off-by: Le Tan <tamlokveer@gmail.com>
2017-01-02 10:00:59 +08:00
Le Tan
3b442f55a9 highlight curren cursor line
Add configuration "highlight_cursor_line" in vnote.ini.

Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-25 20:31:59 +08:00
Le Tan
b0ec4c312a support import existing notebook
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-10 15:41:46 +08:00
Le Tan
8e8d69c85f refactor: VNote and VNotebook
regression: notebook renaming logics does not work for now

Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-26 12:45:29 +08:00
Le Tan
3ae3462597 save/restore window state and geometry
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-20 11:12:15 +08:00
Le Tan
53bce98db6 support changing rendering background color
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-10-28 21:06:26 +08:00
Le Tan
0c3fc3b006 support changing background color of editor
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-10-27 22:41:41 +08:00
Le Tan
8960358feb expand tab to spaces
Add configuration "tab_stop_width" and "is_expand_tab". Expand tab to
tab_stop_width spaces if is_expand_tab is true.

Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-10-27 10:23:38 +08:00
Le Tan
2bd3194af6 clear the [notebooks] section first before storing new one
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-10-26 21:50:38 +08:00
Le Tan
a983026552 add Hoedown for markdown convertion
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-10-23 10:35:31 +08:00
Le Tan
5fa07864a1 move source stuff into src subdir
Make it convenient to add third-party libraries.

Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-10-22 14:11:33 +08:00