Skip to content

Commit

Permalink
release v3.4.0 (#1809)
Browse files Browse the repository at this point in the history
  • Loading branch information
tamlok authored Jul 9, 2021
1 parent 19b5163 commit bdf9224
Show file tree
Hide file tree
Showing 10 changed files with 621 additions and 205 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
workflow_dispatch:

env:
VNOTE_VER: 3.3.0
VNOTE_VER: 3.4.0

jobs:
build-linux:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
workflow_dispatch:

env:
VNOTE_VER: 3.3.0
VNOTE_VER: 3.4.0

jobs:
build-linux:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
workflow_dispatch:

env:
VNOTE_VER: 3.3.0
VNOTE_VER: 3.4.0

jobs:
build:
Expand Down
8 changes: 8 additions & 0 deletions changes.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
# 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
* Editor: support auto indent, auto list
* Support opening notes with external programs
Expand Down
Binary file modified src/data/core/translations/vnote_zh_CN.qm
Binary file not shown.
794 changes: 598 additions & 196 deletions src/data/core/translations/vnote_zh_CN.ts

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/core/vnotex.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"metadata" : {
"//comment": "When releasing new version, please go through the following configs to check if override is needed.",
"//Comment": "markdown_editor#override_viewer_resource",
"version" : "3.3.0"
"version" : "3.4.0"
},
"core" : {
"theme" : "pure",
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/lineeditwithsnippet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ LineEditWithSnippet::LineEditWithSnippet(const QString &p_contents, QWidget *p_p

void LineEditWithSnippet::setTips()
{
const auto tips = tr("Snippet is supported via %name%");
const auto tips = tr("Snippet is supported via \"%name%\"");
setToolTip(tips);
setPlaceholderText(tips);
}
Expand Down
8 changes: 4 additions & 4 deletions src/widgets/textviewwindowhelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ namespace vnotex
p_win->m_editor->getTextEdit(),
SnippetMgr::generateOverrides(p_win->getBuffer()));
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>
Expand All @@ -227,7 +227,7 @@ namespace vnotex
// Found one symbol under current cursor.
snippetName = match.captured(1);
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;
}

Expand All @@ -254,7 +254,7 @@ namespace vnotex
{
const auto snippets = SnippetMgr::getInst().getSnippets();
if (snippets.isEmpty()) {
p_win->showMessage(ViewWindow::tr("Snippet not available"));
p_win->showMessage(vnotex::ViewWindow::tr("Snippet not available"));
return QString();
}

Expand All @@ -267,7 +267,7 @@ namespace vnotex
}

// Ownership will be transferred to showFloatingWidget().
auto selector = new QuickSelector(ViewWindow::tr("Select Snippet"),
auto selector = new QuickSelector(vnotex::ViewWindow::tr("Select Snippet"),
items,
true,
p_win);
Expand Down
6 changes: 6 additions & 0 deletions src/widgets/toolbarhelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,12 @@ QToolBar *ToolBarHelper::setupSettingsToolBar(MainWindow *p_win, QToolBar *p_too

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,
[]() {
Expand Down

0 comments on commit bdf9224

Please sign in to comment.