jjw24 / Wox.Plugin.Runner

A plugin that allows you to create simple command shortcuts in Wox.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Help - using arguments on the search box instead of saving them in settings

flamingjupiter opened this issue · comments

Bruh, I accidentally sent the comment before typing anything.

Sorry for bothering you with a noob question, but I'm having an issue that I don't know if it's on me or the plugin but it's probably on me, I have no coding knowledge. Basically I want to use custom open with commands to open files I have on my computer e.g. opening ahk scripts in a text editor. If I specify a file in the command settings I get to open the file on the text editor, otherwise only the text editor is opened i.e. with a blank new page.

  • Action keyword: r
  • Description: whatever
  • Shortcut: ab
  • Path: path to the editor
  • Working dir: user's desktop (it's where my ahk files are located)
  • Arguments: "file.ahk"

If I set it like I did above it will indeed open "file.ahk" in the text editor when typing "r ab". If I leave the arguments box empty and try to type the file's path when searching (i.e. "r ab "file.ahk"") however, it will open the text editor without opening the file as well.

Leaving the working dir and arguments empty and typing the full path to the file doesn't change the outcome.

What am I doing wrong? I want to be able to set a command as explained above and complement the search with the file name/path so I can use one command to open any file I want with the program I chose instead of creating a lot of commands for doing essentially the same thing for each file I currently have and will eventually have in the future.

Thanks in advance.

Hey how's it going?

You will want to use {0} in "Arguments" to achieve what you are trying to do. {0} represents the path to the file you want to open with your editor.

A side note, I found a bug where if your argument contains a space, it's not going to work, e.g. if it's c:\test 2.txt as oppose to c:\test2.txt`.

I will get around to fixing this bug soon.