Uzbl

Tasklist

FS#147 - Notification messages for binds

Attached to Project: Uzbl
Opened by Michael Fiano (axion) - 2009-12-10 12:54:27 PM
Last edited by Anonymous Submitter - 2009-12-17 04:16:12 AM
Task Type Feature Request
Category uzbl-core
Status Closed
Assigned To No-one
Operating System All
Severity Low
Priority Normal
Reported Version Development
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I think it would be a useful feature to have the message string in binds disappear after some time, to allow for notifications. For example:

@bind <Ctrl>c = sh 'echo -n $6 | xclip'

Currently if I use this bind to copy the clipboard, there is no notification informing the user that something actually happened. Something like:

@bind <Ctrl>c[Address copied to the clipboard] = sh 'echo -n $6 | xclip'

could display the message in [brackets] for a couple seconds, or until another key is pressed.
This task depends upon

Closed by  Anonymous Submitter
2009-12-17 04:16:12 AM
Reason for closing:  Won't implement
Additional comments about closing:  This functionality can be provided outside of the bind plugin (as detailed in the comments).
Comment by Anonymous Submitter - 2009-12-17 04:12:54 AM
I think this is something that should be kept out of the bind plugin and can easily be accomplished by a chain like command:

1. Using chain:
@bind <Ctrl>c = chain '@set_status Address copied to the clipboard' 'sh "echo -n $6 | xclip"'

2. Using events:
@on_event COPY_TO_CLIP @set_status Address copied to the clipboard
@on_event COPY_TO_CLIP sh 'echo -n $6 | xclip
@bind <Ctrl>c = event COPY_TO_CLIP

3. Using the brace expansion plugin:
Download here: http://github.com/mason-larobina/uzbl/blob/brace-expansion/examples/data/uzbl/plugins/brace_expansion.py
@bind <Ctrl>c = @expand {sh "echo -n $6 | xclip", @set_status Address copied to the clipboard}

Just some ideas, but I do believe this functionality doesn't belong in the bind plugin.

The only issue left is the timeout causing it to clear, there might be a market in a plugin that provides timeout & interval commands.

Loading...