From tmtxpstuff@consking.com Sat Sep 30 20:38:37 2006 From: marios To: textmate@lists.macromates.com Subject: Re: [TxMt] drag commands Date: Sat, 30 Sep 2006 23:38:20 +0300 Message-ID: <451ED5BC.6030704@consking.com> In-Reply-To: <44DAFF42.1030806@consking.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8105044339515080644==" --===============8105044339515080644== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Hi, again. I had a look again today at the drag commands documentation (man sec 11) " TM_MODIFIER_FLAGS — the modifier keys which were held down when the file got dropped. This is a bitwise OR in the form: SHIFT|CONTROL|OPTION|COMMAND (in case all modifiers were down). " However, I couldnt' figure this one out. What I would like to do , is to make the command conditional, so it will do a different thing with the URL holding option and command. How do I change the code, so it uses a different Variable in these cases ? (for instance, in this case, using a different variable like $TM_LOCAL_URL instead of $TM_REMOTE_URL) This is the current drag command: echo -n "\${3:\$2}" Also , I tried to modify the code so it strips off the file-extension from the third variable doing the usual TM Transformation, but then I get an Error , gsub complaining. Thanks again, regards, marios --===============8105044339515080644==--