Browse Source

release v3.4.0 (#1809)

Le Tan 4 years ago
parent
commit
bdf922443d

+ 1 - 1
.github/workflows/ci-linux.yml

@@ -10,7 +10,7 @@ on:
   workflow_dispatch:
   workflow_dispatch:
 
 
 env:
 env:
-    VNOTE_VER: 3.3.0
+    VNOTE_VER: 3.4.0
 
 
 jobs:
 jobs:
   build-linux:
   build-linux:

+ 1 - 1
.github/workflows/ci-macos.yml

@@ -10,7 +10,7 @@ on:
   workflow_dispatch:
   workflow_dispatch:
 
 
 env:
 env:
-    VNOTE_VER: 3.3.0
+    VNOTE_VER: 3.4.0
 
 
 jobs:
 jobs:
   build-linux:
   build-linux:

+ 1 - 1
.github/workflows/ci-win.yml

@@ -10,7 +10,7 @@ on:
   workflow_dispatch:
   workflow_dispatch:
 
 
 env:
 env:
-    VNOTE_VER: 3.3.0
+    VNOTE_VER: 3.4.0
 
 
 jobs:
 jobs:
   build:
   build:

+ 8 - 0
changes.md

@@ -1,4 +1,12 @@
 # Changes
 # Changes
+## v3.4.0
+* Support Snippet
+    * `Ctrl+G S` to insert a snippet
+    * `%snippet_name%` to insert a snippet (the legacy Magic Word)
+        * Snippet is supported in some dialogs (such as creating a new note)
+* Support note template (snippet is supported)
+* Remove `'` and `"` from auot-brackets
+
 ## v3.3.0
 ## v3.3.0
 * Editor: support auto indent, auto list
 * Editor: support auto indent, auto list
 * Support opening notes with external programs
 * Support opening notes with external programs

BIN
src/data/core/translations/vnote_zh_CN.qm


File diff suppressed because it is too large
+ 511 - 134
src/data/core/translations/vnote_zh_CN.ts


+ 1 - 1
src/data/core/vnotex.json

@@ -3,7 +3,7 @@
     "metadata" : {
     "metadata" : {
         "//comment": "When releasing new version, please go through the following configs to check if override is needed.",
         "//comment": "When releasing new version, please go through the following configs to check if override is needed.",
         "//Comment": "markdown_editor#override_viewer_resource",
         "//Comment": "markdown_editor#override_viewer_resource",
-        "version" : "3.3.0"
+        "version" : "3.4.0"
     },
     },
     "core" : {
     "core" : {
         "theme" : "pure",
         "theme" : "pure",

+ 1 - 1
src/widgets/lineeditwithsnippet.cpp

@@ -18,7 +18,7 @@ LineEditWithSnippet::LineEditWithSnippet(const QString &p_contents, QWidget *p_p
 
 
 void LineEditWithSnippet::setTips()
 void LineEditWithSnippet::setTips()
 {
 {
-    const auto tips = tr("Snippet is supported via %name%");
+    const auto tips = tr("Snippet is supported via \"%name%\"");
     setToolTip(tips);
     setToolTip(tips);
     setPlaceholderText(tips);
     setPlaceholderText(tips);
 }
 }

+ 4 - 4
src/widgets/textviewwindowhelper.h

@@ -200,7 +200,7 @@ namespace vnotex
                                                p_win->m_editor->getTextEdit(),
                                                p_win->m_editor->getTextEdit(),
                                                SnippetMgr::generateOverrides(p_win->getBuffer()));
                                                SnippetMgr::generateOverrides(p_win->getBuffer()));
             p_win->m_editor->enterInsertModeIfApplicable();
             p_win->m_editor->enterInsertModeIfApplicable();
-            p_win->showMessage(ViewWindow::tr("Snippet applied: %1").arg(p_name));
+            p_win->showMessage(vnotex::ViewWindow::tr("Snippet applied: %1").arg(p_name));
         }
         }
 
 
         template <typename _ViewWindow>
         template <typename _ViewWindow>
@@ -227,7 +227,7 @@ namespace vnotex
                     // Found one symbol under current cursor.
                     // Found one symbol under current cursor.
                     snippetName = match.captured(1);
                     snippetName = match.captured(1);
                     if (!SnippetMgr::getInst().find(snippetName)) {
                     if (!SnippetMgr::getInst().find(snippetName)) {
-                        p_win->showMessage(ViewWindow::tr("Snippet (%1) not found").arg(snippetName));
+                        p_win->showMessage(vnotex::ViewWindow::tr("Snippet (%1) not found").arg(snippetName));
                         return;
                         return;
                     }
                     }
 
 
@@ -254,7 +254,7 @@ namespace vnotex
         {
         {
             const auto snippets = SnippetMgr::getInst().getSnippets();
             const auto snippets = SnippetMgr::getInst().getSnippets();
             if (snippets.isEmpty()) {
             if (snippets.isEmpty()) {
-                p_win->showMessage(ViewWindow::tr("Snippet not available"));
+                p_win->showMessage(vnotex::ViewWindow::tr("Snippet not available"));
                 return QString();
                 return QString();
             }
             }
 
 
@@ -267,7 +267,7 @@ namespace vnotex
             }
             }
 
 
             // Ownership will be transferred to showFloatingWidget().
             // Ownership will be transferred to showFloatingWidget().
-            auto selector = new QuickSelector(ViewWindow::tr("Select Snippet"),
+            auto selector = new QuickSelector(vnotex::ViewWindow::tr("Select Snippet"),
                                               items,
                                               items,
                                               true,
                                               true,
                                               p_win);
                                               p_win);

+ 6 - 0
src/widgets/toolbarhelper.cpp

@@ -491,6 +491,12 @@ QToolBar *ToolBarHelper::setupSettingsToolBar(MainWindow *p_win, QToolBar *p_too
 
 
         menu->addSeparator();
         menu->addSeparator();
 
 
+        menu->addAction(MainWindow::tr("%1 Home Page").arg(qApp->applicationDisplayName()),
+                        menu,
+                        []() {
+                            WidgetUtils::openUrlByDesktop(QUrl("https://vnotex.github.io/vnote"));
+                        });
+
         menu->addAction(MainWindow::tr("Feedback And Discussions"),
         menu->addAction(MainWindow::tr("Feedback And Discussions"),
                         menu,
                         menu,
                         []() {
                         []() {

Some files were not shown because too many files changed in this diff