How to echo current document.title with Firefox Vimperator -> autocmd?

Posted by shox on Super User See other posts from Super User or by shox
Published on 2010-06-27T12:05:26Z Indexed on 2012/03/30 17:33 UTC
Read the original article Hit count: 239

Filed under:
|
|

When I try to do this

:autocmd LocationChange .* echo document.title

the first page that gets displayed makes no echo. If I proceed to the next tab, the title of the last tab gets echoed.

Does anybody know how I can get for every landing on the page the title echoed instantly instead of when "leaving" the tab?

And it only works every two times. If I go through my tabs 1,2,3,4,5,6,7,8 (next tab) the output will be (being at 1 currently)

  • _blank
  • Title of 1
  • _
  • Title of 3
  • _
  • Title of 5
  • _
  • Title of 7
  • _

(now being at tab 8)

But I want

  • Title of 1
  • Title of 2
  • ...

Any ideas?

© Super User or respective owner

Related posts about linux

Related posts about firefox