mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 05:49:53 +08:00
release v3.4.0 (#1809)
This commit is contained in:
parent
19b5163d0b
commit
bdf922443d
2
.github/workflows/ci-linux.yml
vendored
2
.github/workflows/ci-linux.yml
vendored
@ -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:
|
||||||
|
2
.github/workflows/ci-macos.yml
vendored
2
.github/workflows/ci-macos.yml
vendored
@ -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:
|
||||||
|
2
.github/workflows/ci-win.yml
vendored
2
.github/workflows/ci-win.yml
vendored
@ -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:
|
||||||
|
@ -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
|
||||||
|
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@ -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",
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
|
@ -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,
|
||||||
[]() {
|
[]() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user