@beauraines/rtm-cli 1.14.0 → 1.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/README.md +1 -1
- package/package.json +1 -1
- package/src/cmd/obsidian.js +6 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.14.1](https://github.com/beauraines/rtm-cli/compare/v1.14.0...v1.14.1) (2025-12-19)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* properly handles empty location tag, file name written to std err ([#166](https://github.com/beauraines/rtm-cli/issues/166)) ([7834ab0](https://github.com/beauraines/rtm-cli/commit/7834ab00d8105f67c35a07f396fbe3cb5de61eb5))
|
|
11
|
+
|
|
5
12
|
## [1.14.0](https://github.com/beauraines/rtm-cli/compare/v1.13.2...v1.14.0) (2025-12-19)
|
|
6
13
|
|
|
7
14
|
|
package/README.md
CHANGED
|
@@ -176,5 +176,5 @@ and `rtm obsidian 4330` would output
|
|
|
176
176
|
which could be written to a file in your Obsidian Vault.
|
|
177
177
|
|
|
178
178
|
```shell
|
|
179
|
-
rtm ls due:today | cut -wf1 | sort | xargs
|
|
179
|
+
rtm ls due:today | cut -wf1 | sort | xargs rtm obsidian >> ~/LocalDocs/Test/Tasks/rtm.md
|
|
180
180
|
```
|
package/package.json
CHANGED
package/src/cmd/obsidian.js
CHANGED
|
@@ -90,8 +90,9 @@ function displayObsidianTask(idx, task) {
|
|
|
90
90
|
task.list_name = listName;
|
|
91
91
|
|
|
92
92
|
const location = LOCATION_MAP.get(location_id)
|
|
93
|
-
const locationName = location?.name
|
|
94
|
-
|
|
93
|
+
const locationName = location?.name;
|
|
94
|
+
let locationTag ='';
|
|
95
|
+
locationName ? locationTag = '#location/'+locationName.replace(/\s+/g, '-') : null ;
|
|
95
96
|
task.location = location;
|
|
96
97
|
|
|
97
98
|
|
|
@@ -147,7 +148,7 @@ function displayObsidianTask(idx, task) {
|
|
|
147
148
|
}
|
|
148
149
|
|
|
149
150
|
// Add list tag first, then other tags
|
|
150
|
-
const allTags = [`#${listTag}`,
|
|
151
|
+
const allTags = [`#${listTag}`, `${locationTag}`, ...tags.map(t => `#${sanitizeTag(t)}`)];
|
|
151
152
|
const tagStr = allTags.map(t => ` ${t}`).join('');
|
|
152
153
|
line += `${tagStr}`;
|
|
153
154
|
|
|
@@ -265,6 +266,8 @@ function exportDetails(idx, task) {
|
|
|
265
266
|
fs.mkdirSync(path.dirname(filePath), { recursive: true });
|
|
266
267
|
try {
|
|
267
268
|
fs.writeFileSync(filePath, content);
|
|
269
|
+
console.error(`Task detail files written to ${filePath}`)
|
|
270
|
+
|
|
268
271
|
} catch (e) {
|
|
269
272
|
console.error(`Failed to write details file for task ${idx}: ${e}`);
|
|
270
273
|
}
|