Skip to content

Commit

Permalink
[MRG] Merges release '1.2.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
czottmann committed Jun 20, 2024
2 parents e2ad600 + 1bda72f commit ac4a029
Show file tree
Hide file tree
Showing 9 changed files with 1,096 additions and 864 deletions.
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# Release history

## 1.2.0, 2024-06-20

I've rewritten the entire internal logic of Mononote (again) to be more robust and reliable. This should fix a lot of the issues that have been reported with endless flickering and tabs being closed prematurely, and make the plugin more stable overall. It's been a journey. 😅

### New

Tabs will only be closed if they have no history.

### Fixes

- If a tab (T1) loads a note (N1), and N1 is already shown in another tab (T2) [#18]:
- If T1 has a history, it will go back to its previous file, then T2 will be focussed.
- If T1 doesn't have history but is pinned, it'll remain open, still showing N1.
- If T1 doesn't have history and is unpinned, it will close, then T2 will be focussed.
- Clicking on a file in the File Explorer no longer endlessly flashes the tab [#19]
- Cmd/Ctrl-clicking a note in the File Explorer no longer endlessly flashes the tab [#21]
- Clicking on a headline/link in the Outline panel no longer endlessly flashes the linked headline [#26]
- Clicking a link in a pinned tab no longer loads the note in that pinned tab, as you would expect.


## 1.1.1, 2024-01-09

For Mononote to work correctly, _Settings__Editor_**_Always focus new tabs_ MUST BE ENABLED**. This is because it hooks into the `active-leaf-change` event which is not fired for new files when this setting is disabled. Technical limitations, sorry.
Expand Down
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"id": "mononote",
"name": "Mononote",
"version": "1.1.1",
"minAppVersion": "1.4.0",
"version": "1.2.0",
"minAppVersion": "1.5.0",
"description": "Ensures each note occupies only one tab. If a note is already open, its existing tab will be focussed instead of opening the same file in the current tab.",
"author": "Carlo Zottmann",
"authorUrl": "https://github.com/czottmann",
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mononote",
"version": "1.1.1",
"version": "1.2.0",
"description": "Ensures each note occupies only one tab. If a note is already open, its existing tab will be focussed instead of opening the same file in the current tab.",
"main": "main.js",
"scripts": {
Expand All @@ -11,9 +11,9 @@
"author": "Carlo Zottmann",
"license": "MIT",
"devDependencies": {
"@types/node": "^16.11.58",
"@typescript-eslint/eslint-plugin": "5.62.0",
"@typescript-eslint/parser": "5.62.0",
"@types/node": "^18.19.3",
"@typescript-eslint/eslint-plugin": "^7.1.0",
"@typescript-eslint/parser": "^7.1.0",
"builtin-modules": "3.3.0",
"esbuild": "^0.17.16",
"obsidian": "latest",
Expand Down
Loading

0 comments on commit ac4a029

Please sign in to comment.