@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 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 ./src/cli.js obsidian >> ~/LocalDocs/Test/Tasks/rtm.md
179
+ rtm ls due:today | cut -wf1 | sort | xargs rtm obsidian >> ~/LocalDocs/Test/Tasks/rtm.md
180
180
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beauraines/rtm-cli",
3
- "version": "1.14.0",
3
+ "version": "1.14.1",
4
4
  "description": "RTM CLI",
5
5
  "keywords": [
6
6
  "rtm",
@@ -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 || "Not found";
94
- const locationTag = 'location/'+locationName.replace(/\s+/g, '-');
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}`, `#${locationTag}`, ...tags.map(t => `#${sanitizeTag(t)}`)];
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
  }