editprompt 1.1.0 → 1.1.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.
Files changed (2) hide show
  1. package/dist/index.js +5 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ import { tmpdir } from "node:os";
9
9
  import { join } from "node:path";
10
10
 
11
11
  //#region package.json
12
- var version = "1.1.0";
12
+ var version = "1.1.1";
13
13
 
14
14
  //#endregion
15
15
  //#region src/modules/tmux.ts
@@ -677,6 +677,10 @@ async function runInputMode(rawContent, autoSend, sendKey) {
677
677
  } catch (error) {
678
678
  console.error(`Failed to send to pane ${targetPane}: ${error instanceof Error ? error.message : "Unknown error"}`);
679
679
  }
680
+ if (config.alwaysCopy) {
681
+ await copyToClipboard(content);
682
+ console.log("Also copied to clipboard.");
683
+ }
680
684
  if (successCount > 0) console.log("Content sent and submitted successfully!");
681
685
  else {
682
686
  console.error("Error: All target panes failed to receive content");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "editprompt",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "author": "eetann",
5
5
  "description": "A CLI tool that lets you write prompts for CLI tools using your favorite text editor",
6
6
  "license": "MIT",