editprompt 0.2.0 → 0.2.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 +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -10,7 +10,7 @@ import find from "find-process";
10
10
  import inquirer from "inquirer";
11
11
 
12
12
  //#region package.json
13
- var version = "0.2.0";
13
+ var version = "0.2.1";
14
14
 
15
15
  //#endregion
16
16
  //#region src/config/constants.ts
@@ -196,7 +196,7 @@ async function sendToTmuxPane(session, window, pane, content) {
196
196
  }
197
197
  async function sendToSpecificPane(paneId, content) {
198
198
  const tempContent = content.replace(/'/g, "'\\''");
199
- await execAsync(`tmux load-buffer -b editprompt - <<< '${tempContent}'`);
199
+ await execAsync(`printf %s '${tempContent}' | tmux load-buffer -b editprompt -`);
200
200
  await execAsync(`tmux paste-buffer -d -t '${paneId}' -b editprompt`);
201
201
  }
202
202
  async function copyToClipboard(content) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "editprompt",
3
- "version": "0.2.0",
3
+ "version": "0.2.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",