zim-wiki team mailing list archive
-
zim-wiki team
-
Mailing list archive
-
Message #03338
Re: How to start a terminal as zim custom command
-
To:
Jaap Karssenberg <jaap.karssenberg@xxxxxxxxx>
-
From:
WEHLER Andreas <andreas.wehler@xxxxxxxxxxxxxxx>
-
Date:
Tue, 24 Mar 2015 10:38:59 +0100
-
Accept-language:
en-US, fr-FR
-
Acceptlanguage:
en-US, fr-FR
-
Cc:
Zim <zim-wiki@xxxxxxxxxxxxxxxxxxx>
-
In-reply-to:
<CA+TmwMGt50Q71YiM6Bm5yh2m3AO-0Q7emxxYTeP=YfwoWODzrg@mail.gmail.com>
-
Thread-index:
AdBmFlv1sgMqY7HfQbWBdCy7QQwsqA==
-
Thread-topic:
[Zim-wiki] How to start a terminal as zim custom command
-
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0
Hi Jaap.
# this works:
# zim custom command
gnome-terminal --working-directory=/tmp
# this does not work (%d is ignored? empty? not expanded?)
# zim custom command
gnome-terminal --working-directory=%d
Best regards,
Andreas
On 24.03.2015 09:28, Jaap Karssenberg wrote:
> Hi Andreas,
>
> What prevents you from define e.g. "xterm %d" as a custom command (replace "xterm" with your console of choice) ? Also when you need the script, you should be able to put the full path to the script in the custom command dialog, e.g "~/bin/StartTerminal.sh" should work just fine.
>
> But maybe I so not understand the problem statement fully?
>
> Jaap
>
>
> On Tue, Mar 24, 2015 at 8:31 AM, WEHLER Andreas <andreas.wehler@xxxxxxxxxxxxxxx <mailto:andreas.wehler@xxxxxxxxxxxxxxx>> wrote:
>
> Hi.
>
> I'm still looking for a good way to start a terminal as a custom command
> from within zim.
>
> Until now I have defined a wrapper which must be found within $PATH:
> StartTerminal.sh # see attachment
>
> The setup of the custom command is shown here:
> Snap_01.png # see attachment
>
> This works if zim is started from a shell with PATH being set up
> e.g. in .bashrc and the wrapper is saved as "~/bin/StartTerminal.sh".
> Assume you have no write permission for /usr/local/bin.
>
> So I've created also another launcher just to start zim:
> StartZim.sh # see attachment, saved to ~/bin
>
> And my launcher looks like:
> Snap_02.png # see attachment, this works
>
>
> Now, the wrappers do a proof of concept, but it is a hassle.
> It's nothing you ever want to show a workmate.
>
> Apparently I miss something with parameter substitution in zim
> custom commands or with quoting?
>
> Thanks,
>
> Andreas
>
>
> zim 0.60; Ubuntu 14.04
>
Follow ups
References