Hi
I am dumping rox-selection-paths by middle-mouse to an entrybox.
The rox-selections stays sticky - after the dump - which I somewhat
consider a nuisance,but not a bug.Rox version 2.9.
On dumparrival,using xdotool to send an escape-key to the Rox-window, I can release,clear selections.
However - xdotool is "external" and somewhat heavy -bytewise- just for this .
So the question:
Is there another way,mechanism to - from a script -make ROX clear selections?
Thanks
ROX-Filer release of SELECTIONS using Script ?
...why so shy?.
Hi
...meanwhile - using xdotool::
Visible windows with titles starting with "home" or / will get an Escape key.
( Note: Also minimized windows can carry a selection )
That is somewhat of an overkill - because on receiving data - the script COULD deduct the parent-path to the directory in which the selections occurred.
However - ROX craves user-action to free selections -
and with a hectic selection activity on several windows - there may be
1) stale,dimmed selections
2) the actual last selection -which is in the clipboard
Dead selections are a nuisance,when forgotten - and f.x. a right-click in a filer-window with dead-selections might give rise to a WTF-moment.
So for now:
Sending out a spree of Escapes makes for a saner world.
The extra coding needed for a dedicated solution does not really seem worth it.
But still - xdotool has to be around - so another -,"in residence" - way would be preferable.
Cheers
...meanwhile - using xdotool::
Code: Select all
$(xdotool search --onlyvisible --name '^[~|/]' key --window %@ "Escape")
( Note: Also minimized windows can carry a selection )
That is somewhat of an overkill - because on receiving data - the script COULD deduct the parent-path to the directory in which the selections occurred.
However - ROX craves user-action to free selections -
and with a hectic selection activity on several windows - there may be
1) stale,dimmed selections
2) the actual last selection -which is in the clipboard
Dead selections are a nuisance,when forgotten - and f.x. a right-click in a filer-window with dead-selections might give rise to a WTF-moment.
So for now:
Sending out a spree of Escapes makes for a saner world.
The extra coding needed for a dedicated solution does not really seem worth it.
But still - xdotool has to be around - so another -,"in residence" - way would be preferable.
Cheers