mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-06-16 00:05:40 +02:00
particle: on-click: tilde expansion
We now do tilde expansion of the *first* argument in on-click handlers. That is: ~/bin/foobar.sh ~/arg1 is expanded to $HOME/bin/foobar.sh ~/arg1 (meaning, the handler will most likely *not* do what you’d expect) Related to #307
This commit is contained in:
parent
f948b9f8f9
commit
d6e7710a7e
6 changed files with 77 additions and 21 deletions
|
@ -44,10 +44,11 @@ following attributes are supported by all particles:
|
|||
| on-click
|
||||
: associative array/string
|
||||
: no
|
||||
: When set to a string, executes the string as a command when the particle
|
||||
is left-clicked. Tags can be used. Note that the string is *not*
|
||||
executed in a shell. The same applies to all attributes associated with
|
||||
it, below.
|
||||
: When set to a string, executes the string as a command when the
|
||||
particle is left-clicked. Tags can be used. Note that the string is
|
||||
*not* executed in a shell. Environment variables are not expanded.
|
||||
*~/* is expanded, but only in the first argument. The same applies
|
||||
to all attributes associated with it, below.
|
||||
| on-click.left
|
||||
: string
|
||||
: no
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue