Skip to content

Commit

Permalink
🔖 1.0.14
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 7, 2023
1 parent bc45c4f commit f9dff20
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 28 deletions.
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,29 @@ All notable changes to this project will be documented in this file. Dates are d

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

#### [1.0.14](https://github.com/ebullient/obsidian-task-collector/compare/1.0.13...1.0.14)

- Bump esbuild from 0.19.6 to 0.19.8 [`3d4bd48`](https://github.com/ebullient/obsidian-task-collector/commit/3d4bd48c8ac26c03207aa48b930b4e556399b530)
- Bump esbuild from 0.19.5 to 0.19.6 [`8a87f8e`](https://github.com/ebullient/obsidian-task-collector/commit/8a87f8e006b936773c15d0961c6635f1583ff3a3)
- Bump @typescript-eslint/parser from 6.10.0 to 6.11.0 [`de07a5d`](https://github.com/ebullient/obsidian-task-collector/commit/de07a5d71936d08b6266cf0ac3fae38855eb6073)
- Bump @typescript-eslint/eslint-plugin from 6.9.1 to 6.11.0 [`3a5d521`](https://github.com/ebullient/obsidian-task-collector/commit/3a5d521a9ffce95e4ae1808350451338e5ae1c9b)
- Bump @typescript-eslint/parser from 6.11.0 to 6.12.0 [`40fea47`](https://github.com/ebullient/obsidian-task-collector/commit/40fea477bbf1113374e674d4291798e2138bf41f)
- Bump @typescript-eslint/parser from 6.12.0 to 6.13.1 [`1ce9de9`](https://github.com/ebullient/obsidian-task-collector/commit/1ce9de9eabe15ae61f25b069c49853863f0e7903)
- Bump eslint from 8.54.0 to 8.55.0 [`95060e1`](https://github.com/ebullient/obsidian-task-collector/commit/95060e1018ecdeb7edb6dbd908dcf70ac97ec0df)
- Bump eslint from 8.53.0 to 8.54.0 [`3e1a4f3`](https://github.com/ebullient/obsidian-task-collector/commit/3e1a4f322d2bea385e0631f6d0ac2b2a23a0fb1c)
- Bump typescript from 5.2.2 to 5.3.2 [`5d8b98d`](https://github.com/ebullient/obsidian-task-collector/commit/5d8b98d267fe0dd0075c52a0a06a9eff8e839f0a)
- Bump @codemirror/state from 6.3.1 to 6.3.2 [`76deac9`](https://github.com/ebullient/obsidian-task-collector/commit/76deac9846b1c1ed96985d9825486df968adf64b)
- Bump @types/jest from 29.5.8 to 29.5.10 [`10532ed`](https://github.com/ebullient/obsidian-task-collector/commit/10532edc8b7ba99b68923975d16e7d4e827059b3)
- Bump @types/node from 20.9.2 to 20.10.0 [`642ef67`](https://github.com/ebullient/obsidian-task-collector/commit/642ef67653fb06789b8f8b0edd2334a21969bd7a)
- Bump @types/codemirror from 5.60.13 to 5.60.15 [`f1c3183`](https://github.com/ebullient/obsidian-task-collector/commit/f1c3183c36beff94dc0cdb59d6d70ddf00666ab8)
- Bump @codemirror/view from 6.22.0 to 6.22.1 [`6de53f3`](https://github.com/ebullient/obsidian-task-collector/commit/6de53f312725e02a4c787839d7d4e926b34f624f)
- Bump @types/node from 20.9.0 to 20.9.2 [`438eb0a`](https://github.com/ebullient/obsidian-task-collector/commit/438eb0a5ff0b48d9b77b147320a2a207cb6f9480)
- 🎨 use this.app consistently [`bc45c4f`](https://github.com/ebullient/obsidian-task-collector/commit/bc45c4f00f15ed6937db9d10d53df2e38031de6f)

#### [1.0.13](https://github.com/ebullient/obsidian-task-collector/compare/1.0.12...1.0.13)

> 18 November 2023
- 🎨 Add hideNotifications setting; Resolves #330 [`#330`](https://github.com/ebullient/obsidian-task-collector/issues/330)
- Bump jest and @types/jest [`6cc2201`](https://github.com/ebullient/obsidian-task-collector/commit/6cc22013f60e59e7a838f2b7032172992bad7cc8)
- Bump jest and @types/jest [`c42e1dd`](https://github.com/ebullient/obsidian-task-collector/commit/c42e1dd7f42cc715645a26c5da89489365d10c95)
Expand Down
2 changes: 1 addition & 1 deletion manifest-beta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "obsidian-task-collector",
"name": "Task Collector (TC)",
"version": "1.0.13",
"version": "1.0.14",
"minAppVersion": "0.13.10",
"description": "Change task status and collect tasks within a document using hotkeys and context menus.",
"author": "ebullient",
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "obsidian-task-collector",
"name": "Task Collector (TC)",
"version": "1.0.13",
"version": "1.0.14",
"minAppVersion": "0.13.10",
"description": "Change task status and collect tasks within a document using hotkeys and context menus.",
"author": "ebullient",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-task-collector",
"version": "1.0.13",
"version": "1.0.14",
"private": true,
"description": "Manage completed tasks within a document in Obsidian (https://obsidian.md)",
"main": "main.js",
Expand Down
49 changes: 26 additions & 23 deletions src/taskcollector-Plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -563,30 +563,33 @@ export function inlinePlugin(tcp: TaskCollectorPlugin, tc: TaskCollector) {
if (!mark) {
return false;
}
await this.tcp.app.vault.process(activeFile, (source): string => {
const position = this.view.posAtDOM(target);
const line = view.state.doc.lineAt(position);
const i = source
.split("\n")
.findIndex((c) => c === line.text);

tc.logDebug(
"TC ViewPlugin: mark task",
activeFile.path,
mark,
line,
i,
);
await this.tcp.app.vault.process(
activeFile,
(source): string => {
const position = this.view.posAtDOM(target);
const line = view.state.doc.lineAt(position);
const i = source
.split("\n")
.findIndex((c) => c === line.text);

tc.logDebug(
"TC ViewPlugin: mark task",
activeFile.path,
mark,
line,
i,
);

if (tcp.tc.anyTaskMark.test(line.text)) {
return tc.markSelectedTask(source, mark, [i]);
} else {
const offset = Number(target.dataset.line);
return tc.markSelectedTask(source, mark, [
i + offset,
]);
}
});
if (tcp.tc.anyTaskMark.test(line.text)) {
return tc.markSelectedTask(source, mark, [i]);
} else {
const offset = Number(target.dataset.line);
return tc.markSelectedTask(source, mark, [
i + offset,
]);
}
},
);

return true;
};
Expand Down

0 comments on commit f9dff20

Please sign in to comment.