96 Commits

Author SHA1 Message Date
Le Tan
feea50d888 FileList: bug fix when importing the same note file in the same folder 2018-06-08 20:00:20 +08:00
Le Tan
af8cd0d73b refine Info act 2018-06-01 16:58:50 +08:00
Le Tan
2ff9c607dd explorer: support exploring system's files 2018-05-26 13:26:59 +08:00
Le Tan
a98757643f VFileList: support specifying different view orders 2018-05-23 20:09:27 +08:00
Le Tan
f130c3dd98 bug-fix: enter press on an unknown file in file list should not close current tab 2018-05-23 20:08:29 +08:00
Le Tan
d92453ef82 FileList/DirectoryTree: lazy initialization for QAction 2018-05-23 20:07:41 +08:00
Le Tan
f6436bfabf support history navigation 2018-05-17 21:32:38 +08:00
Le Tan
f2c26d8353 VFileList: do not close current tab when opening Unknown file in single click 2018-05-11 14:39:51 +08:00
Le Tan
eb734f591e import: do not copy files when import if they locate in current folder 2018-04-03 19:38:59 +08:00
Le Tan
f733ce45db Settings: add item to config single click's behavior in notes list 2018-04-02 20:37:24 +08:00
Le Tan
4727d0aa98 refine interfaces 2018-03-28 19:36:35 +08:00
Le Tan
47b4cc88aa support sorting items by clicking the column header 2018-03-16 21:37:56 +08:00
Le Tan
eb4d2a7ba3 search: add context menu to search result tree 2018-03-15 22:00:30 +08:00
Le Tan
2d3567e460 refine interface with shortcut hints 2018-02-26 19:30:20 +08:00
Le Tan
0f6e9e1905 refactor VListWidget 2018-02-03 12:09:57 +08:00
Xianzhong Wang
74cb54e02b [function] support advanced search in file list (#121)
spec:
when focus in file list,
1. type any character or digit will trigger the advanced search mode
2. type Esc to exit the search mode
3. type Enter or mouse select will also exit the search mode
2018-01-29 06:03:44 +08:00
Le Tan
30c69fc148 single click in file list to open file in current tab 2018-01-26 08:48:06 +08:00
Le Tan
d630ff7bf2 keep focus in VFileList once click an item 2018-01-21 14:51:36 +08:00
Le Tan
8dfcda0e51 add Cart to collect notes for further processing 2018-01-16 21:05:35 +08:00
Le Tan
cb8a1df337 support shortcuts for external programs
1. External editor format: name=program %0,<shortcut>
2. Add "OpenViaDefaultProgram" shortcut to call system's default program
to open current note. "F12" by default.
2017-12-25 19:44:12 +08:00
Le Tan
e6db71217a add config close_before_external_editor
Do not close the note when opening it with external editors if this is true.
2017-12-22 22:09:38 +08:00
Le Tan
c0c4b8602a add VTipsDialog to display hints about some actions 2017-12-22 19:33:42 +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
5ca9ea6b92 remove focus rectangle on Mac 2017-12-09 16:15:01 +08:00
Le Tan
bda61a994c support overriding icon color in theme 2017-12-06 20:35:01 +08:00
Le Tan
32aa68dc78 support custom external editors
Define [external_editors] section for custom external editors.
2017-11-20 19:29:31 +08:00
Le Tan
6ac33d2bd0 support snippets
Shortcuts are not supported yet.
2017-11-11 08:09:22 +08:00
Le Tan
78a86cddc0 support note template
VNote will scan files in the template folder in the config folder as
template.

Template supports magic word.
2017-11-06 21:47:38 +08:00
Le Tan
404b5329a1 replace VEdit and VMdEdit with VEditor and VMdEditor 2017-10-26 19:36:12 +08:00
Le Tan
f1f6980921 refactor VNotebookSelector 2017-10-14 15:30:36 +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
893c0b2823 bug-fix: use completeBaseName() when adding sequence to file name
- When adding attachments, if the name conflicts, we add sequence after
the base name. "abc.tar.gz" to "abc_001.tar.gz".
- When handling notes and folders, if the name conflicts, we add
sequence after the complete base name. "abc.5.9.1.md" to
"abc.5.9.1_001.md".
2017-10-09 21:25:30 +08:00
Le Tan
cff6a1e49a bug-fix: do not change mode when clicking an item in VFileList to open an already opened note 2017-10-09 21:25:30 +08:00
Le Tan
93a218655d refine Chinese translations 2017-10-01 10:37:17 +08:00
Le Tan
3724eb35dd refactor VDirectoryTree
- Refine folder deletion logics;
- Refine folder copy/paste logics;
- Add folder sort logics;
2017-09-30 09:51:40 +08:00
Le Tan
58e7cdca4b refactor VFileList
- Refine note deletion logics;
- Refine note copy/paste logics;
- Refine note sorting logics;
2017-09-29 19:56:38 +08:00
Le Tan
ffd0cc8e6e refine DocType
- Use *.html suffix for rich text file;
- For unknown DocType, open it using system's default app;
- Add "Open Via External Program" item in context menu of VFileList;
2017-09-26 19:28:11 +08:00
Le Tan
a64d01ea86 refactor VFile and VOrphanFile
1. Make VFile a real abstract class;
2. Use VNoteFile for internal note file;
3. Use VOrphanFile for external orphan file;
2017-09-21 19:33:37 +08:00
Le Tan
35fa0a46f6 add recycle bin to each notebook 2017-09-16 14:55:42 +08:00
Le Tan
156a73ff8c vfilelist: add two context menu items 2017-09-16 14:55:42 +08:00
Le Tan
a36b512e94 do not allow changing type of note 2017-09-16 14:55:42 +08:00
Le Tan
84d1648fe4 bug-fix: move cursor to the end after creating new note
focusWidget() is NULL in Linux.
2017-09-12 21:16:47 +08:00
Le Tan
ed4044061f bug-fix: move to the end of document after inserting title when creating a new note 2017-09-11 19:49:00 +08:00
Le Tan
f050d7d814 support custom mode to open a note by config note_open_mode 2017-09-08 21:40:55 +08:00
Le Tan
d2ef9608fc bug-fix: use platform-specific text of QKeySequence in context menu 2017-09-08 21:40:31 +08:00
Le Tan
d6ca4245d9 minor-fix: VFileList and VNotebookSelector
1. Bug fix: after deleting last folder, the file list won't be cleared;
2. Move cursor one line down after inserting title automatically;
3. Prompt user to create a root folder after creating a notebook;
4. Autocomplete the folder name from the chosen path when creating a
notebook;
5. Add "Open Notebook Location" action in the context menu of
VNotebookSelector;
2017-09-08 21:40:11 +08:00
Le Tan
59d0e82e66 refactor retrivePath to fetchPath 2017-09-07 20:33:38 +08:00
Le Tan
803af89dde support inserting note name as title when creating a note 2017-09-07 20:32:29 +08:00
Le Tan
7a0a2c552b add shortcuts for note and folder management 2017-09-05 20:54:15 +08:00
Le Tan
73630448a6 move vconfig to a local variable 2017-08-29 09:40:28 +08:00