Open CommandLineDesign opened 9 years ago
Can you provide an example? Do you mean a placeholder for the current file that is being processed when you iterate through a number of files?
Okay sorry that wasn't very clear. You might recognize this command I'm working with from one of my other posts:
"vault-checkIn" : "e://myDir//vault//vault.exe CHECKIN -repository \"'My Repository'\" '{{pwd}}{{args}}'"
So I'm trying to hook into this Vault source control's command line interface via Glue, and I'm using the above command to save time checking in files. When I launch Glue from a file in a project {{pwd}} resolves to the directory of the current working file without the file name. The current work around I'm using is to pass the file name through the args, which works great but it would be nice to be able to eliminate that step if possible.
I see you want Glue to capture the file from which it was launched for the session. Let me look into that. That should be doable. Thanks for the suggestion!
I really have no idea what I"m doing in Python but I was bored and figured I would give this a shot. I didn't want to mess with your development branch so I forked this project and made an attempt at adding the replacement tag I wanted. You can see my changes on my fork of this repo: https://github.com/CommandLineDesign/glue
It works on the first iteration, but every time afterwards when I attempt to use my replacement tag it's resolving to terimnal.glue. Any ideas how I could fix this so it will always resolve to the calling filepath?
Actually, I really don't know what I'm doing here. I've found that if I leave the terminal.glue window that comes up, the path I've used will resolve to terminal.glue, but if I close the terminal.glue window and then go back to the page I used the glue shortcut from it will work as I intended.
will take a look at it bud. thanks for tinkering with it. Let's see where we get.
On Nov 29, 2014, at 9:19 PM, CommandLineDesign notifications@github.com wrote:
I really have no idea what I"m doing in Python but I was bored and figured I would give this a shot. I didn't want to mess with your development branch so I forked this project and made an attempt at adding the replacement tag I wanted. You can see my changes on my fork of this repo: https://github.com/CommandLineDesign/glue
It works on the first iteration, but every time afterwards when I attempt to use my replacement tag it's resolving to terimnal.glue. Any ideas how I could fix this so it will always resolve to the calling filepath?
— Reply to this email directly or view it on GitHub.
The {{pwd}} replacement tag is working great, but it'd be big timesaver to have one for filename also if possible. Thanks!