Uzbl

Tasklist

FS#146 - fl command no longer functioning properly with 'set keycmd ='

Attached to Project: Uzbl
Opened by skottish (skottish) - 2009-12-09 02:41:24 AM
Last edited by Anonymous Submitter - 2009-12-15 03:04:05 PM
Task Type Bug Report
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 0%
Votes 0
Private No

Details

Setting 'set keycmd =' at the end of LOAD_START no longer functions as the old code did:

set load_start_handler = chain 'set status_message = <span foreground="khaki">wait</span>' 'set keycmd ='

My first attempt at a new version was this:

@on_event LOAD_START chain '@set_status <span foreground="khaki">wait</span>' 'set keycmd ='

When issuing fl everything seems to work properly: the link is followed and the command bar clears. But when a new command is issued, the fl<some_number> line reappears. The following code seems to work better:

@on_event LOAD_START chain '@set_status <span foreground="khaki">wait</span>' 'event KEYCMD_STRIP_WORD'

There are cases where, and I'm having trouble reproducing them, backspacing to the end of the new command would send uzbl to some link somewhere on the page. As well, with the new version of the LOAD_START code, ESC does not clear the numbers on screen if I choose not to follow a link.

I've seen the behavior in both 2009.11.30 and git on Arch Linux.
This task depends upon

Closed by  Anonymous Submitter
2009-12-15 03:04:05 PM
Reason for closing:  Fixed
Additional comments about closing:  Pushed fix to my master repo, awaiting pull.
Comment by Anonymous Submitter - 2009-12-10 05:17:33 PM
Simple solution:

Uzbl.run('event SET_KEYCMD');

Edit: Pushed a fix to my master repo http://github.com/mason-larobina/uzbl/commit/77e2678988494be1146ab6141f547fa64b8401b7

Loading...