From b71e7ea1e364d3fdcaf543e84def30af32c09fce Mon Sep 17 00:00:00 2001 From: Miguel Jacq Date: Sun, 2 Nov 2025 19:15:55 +1100 Subject: [PATCH] Tweak UI for diff --- CHANGELOG.md | 4 ++++ README.md | 1 + bouquin/history_dialog.py | 4 ++-- bouquin/main_window.py | 4 ++-- pyproject.toml | 2 +- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4234e6e..86bf338 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.1.6 + + * Fix shortcuts for next/previous day to not collide with Normal text (Ctrl+N) + # 0.1.5 * Refactor schema to support versioning of pages. Add HistoryDialog and diff with ability to revert. diff --git a/README.md b/README.md index 404c4e8..ea1cbdc 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,7 @@ There is deliberately no network connectivity or syncing intended. * Data is encrypted at rest * Encryption key is prompted for and never stored, unless user chooses to via Settings * Every 'page' is linked to the calendar day + * All changes are version controlled, with ability to view/diff versions and revert * Text is HTML with basic styling * Search * Automatic periodic saving (or explicitly save) diff --git a/bouquin/history_dialog.py b/bouquin/history_dialog.py index b4f3bcd..1c906ac 100644 --- a/bouquin/history_dialog.py +++ b/bouquin/history_dialog.py @@ -77,14 +77,14 @@ class HistoryDialog(QDialog): self.list.currentItemChanged.connect(self._on_select) top.addWidget(self.list, 1) - # Right: tabs (Preview / Diff vs current) + # Right: tabs (Preview / Diff) self.tabs = QTabWidget() self.preview = QTextBrowser() self.preview.setOpenExternalLinks(True) self.diff = QTextBrowser() self.diff.setOpenExternalLinks(False) self.tabs.addTab(self.preview, "Preview") - self.tabs.addTab(self.diff, "Diff vs current") + self.tabs.addTab(self.diff, "Diff") self.tabs.setMinimumSize(500, 650) top.addWidget(self.tabs, 2) diff --git a/bouquin/main_window.py b/bouquin/main_window.py index 7d2fbfc..6cd6f17 100644 --- a/bouquin/main_window.py +++ b/bouquin/main_window.py @@ -210,14 +210,14 @@ class MainWindow(QMainWindow): # Navigate menu with next/previous/today nav_menu = mb.addMenu("&Navigate") act_prev = QAction("Previous Day", self) - act_prev.setShortcut("Ctrl+P") + act_prev.setShortcut("Ctrl+<") act_prev.setShortcutContext(Qt.ApplicationShortcut) act_prev.triggered.connect(lambda: self._adjust_day(-1)) nav_menu.addAction(act_prev) self.addAction(act_prev) act_next = QAction("Next Day", self) - act_next.setShortcut("Ctrl+N") + act_next.setShortcut("Ctrl+>") act_next.setShortcutContext(Qt.ApplicationShortcut) act_next.triggered.connect(lambda: self._adjust_day(1)) nav_menu.addAction(act_next) diff --git a/pyproject.toml b/pyproject.toml index 1797db1..795ba1e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "bouquin" -version = "0.1.5" +version = "0.1.6" description = "Bouquin is a simple, opinionated notebook application written in Python, PyQt and SQLCipher." authors = ["Miguel Jacq "] readme = "README.md"