My favorites | Sign in
Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 3: Javascript DOM method completion
2 people starred this issue and may be notified of changes. Back to list
Status:  Accepted
Owner:  maglion...@gmail.com
Project-Vimperator
Type-Plugin
Priority-Medium


Sign in to add a comment
 
Reported by maglion...@gmail.com, Oct 05, 2009
Originally reported by maglione.k, on 2008-10-24 22:56:16:

Completion functions for arguments to common DOM methods.
Comment 1 by maglion...@gmail.com, Oct 05, 2009
Originally noted by by maxauthority, on 2008-10-23 11:07:23:

thesnowdog is working on a :sanitize command which will allow this to do
Comment 2 by maglion...@gmail.com, Oct 05, 2009
Originally noted by by maglione.k, on 2008-10-25 18:49:29:

Other workarounds exist in CVS. Namely

:js storage["history-command"].truncate(0)

:js storage["history-command"].mutate("filter", function (h) !/^(tab|win)?o(pen|\b)/.test(h))

Comment 3 by maglion...@gmail.com, Oct 05, 2009
Originally noted by by maxauthority, on 2008-10-23 11:07:23:

thesnowdog is working on a :sanitize command which will allow this to do
Comment 4 by maglion...@gmail.com, Oct 05, 2009
Originally noted by by maxauthority, on 2008-10-23 11:07:23:

thesnowdog is working on a :sanitize command which will allow this to do
Comment 5 by maglion...@gmail.com, Oct 05, 2009
Originally noted by by maglione.k, on 2008-10-25 18:49:29:

Other workarounds exist in CVS. Namely

:js storage["history-command"].truncate(0)

:js storage["history-command"].mutate("filter", function (h) !/^(tab|win)?o(pen|\b)/.test(h))

Comment 6 by maglion...@gmail.com, Oct 05, 2009
Originally noted by by maxauthority, on 2008-10-23 11:07:23:

thesnowdog is working on a :sanitize command which will allow this to do
Comment 7 by maglion...@gmail.com, Oct 05, 2009
Originally noted by by maglione.k, on 2008-10-25 18:49:29:

Other workarounds exist in CVS. Namely

:js storage["history-command"].truncate(0)

:js storage["history-command"].mutate("filter", function (h) !/^(tab|win)?o(pen|\b)/.test(h))

Comment 8 by maglion...@gmail.com, Oct 05, 2009
Originally noted by by maxauthority, on 2008-10-23 11:07:23:

thesnowdog is working on a :sanitize command which will allow this to do
Comment 9 by maglion...@gmail.com, Oct 05, 2009
Originally noted by by maglione.k, on 2008-10-25 18:49:29:

Other workarounds exist in CVS. Namely

:js storage["history-command"].truncate(0)

:js storage["history-command"].mutate("filter", function (h) !/^(tab|win)?o(pen|\b)/.test(h))

Comment 10 by maglion...@gmail.com, Oct 05, 2009
Originally noted by by dougkearns, on 2008-10-29 01:14:53:


Comment 11 by maglion...@gmail.com, Oct 05, 2009
Originally noted by by dougkearns, on 2008-10-29 03:27:39:


Comment 12 by maglion...@gmail.com, Oct 05, 2009
Originally noted by by janus_wel, on 2008-10-29 11:56:25:

jscompletion.js don't work on current Vimperator version. so make the patch.
Comment 13 by maglion...@gmail.com, Oct 05, 2009
Originally noted by by anekos, on 2008-11-01 10:01:30:

This script taints "liberator.modules".
Vimperator's scripts should be surrounded by (function(){ })();.
Comment 14 by maglion...@gmail.com, Oct 05, 2009
Originally noted by by maxauthority, on 2008-11-24 12:39:45:

I agree with anekos, although we should probably make that default in vimperator, so script authors wouldn't need this "hack". I don't think there are many plugins which really need access to other plugins data. If so, they should use liberator.plugins.foo = ...;

This plugin is broken for the latest vimperator versions:

vimperator: TypeError: util.arrayIter is not a function::
fileName: "chrome://liberator/content/io.js -> file:///home/maxauthority/.vimperator/plugin/jscompletion.js"
lineNumber: 14
message: "util.arrayIter is not a function"
stack: 	elemToString([object XULElement])@chrome://liberator/content/io.js -> file:///home/maxauthority/.vimperator/plugin/jscompletion.js:14
	("getElementById",[object XULDocument],"",[object Array])@chrome://liberator/content/io.js -> file:///home/maxauthority/.vimperator/plugin/jscompletion.js:23
	_complete([object Object])@chrome://liberator/content/completion.js:743
	_javascript([object Object])@chrome://liberator/content/completion.js:1235
	([object Object],[object Object],false,-1)@chrome://liberator/content/ui.js:504
	ex([object Object])@chrome://liberator/content/completion.js:1162
	fork("ex",0,ex,[object Object])@chrome://liberator/content/completion.js:222
	("echo document.getElementById(\"")@chrome://liberator/content/ui.js:160
	("complete",512,"echo document.getElementById(\"")@chrome://liberator/content/liberator.js:587
	onEvent([object KeyboardEvent])@chrome://liberator/content/ui.js:840
	([object KeyboardEvent])@chrome://liberator/content/events.js:1493
	([object KeyboardEvent])@chrome://liberator/content/events.js:557

Comment 15 by maglion...@gmail.com, Oct 05, 2009
Originally noted by by maxauthority, on 2008-11-24 12:40:18:

Sorry, the latest commit should be:

{{{
vimperator: TypeError: util.arrayIter is not a function::
fileName: "chrome://liberator/content/io.js -> file:///home/maxauthority/.vimperator/plugin/jscompletion.js"
lineNumber: 14
message: "util.arrayIter is not a function"
stack: 	elemToString([object XULElement])@chrome://liberator/content/io.js -> file:///home/maxauthority/.vimperator/plugin/jscompletion.js:14
	("getElementById",[object XULDocument],"",[object Array])@chrome://liberator/content/io.js -> file:///home/maxauthority/.vimperator/plugin/jscompletion.js:23
	_complete([object Object])@chrome://liberator/content/completion.js:743
	_javascript([object Object])@chrome://liberator/content/completion.js:1235
	([object Object],[object Object],false,-1)@chrome://liberator/content/ui.js:504
	ex([object Object])@chrome://liberator/content/completion.js:1162
	fork("ex",0,ex,[object Object])@chrome://liberator/content/completion.js:222
	("echo document.getElementById(\"")@chrome://liberator/content/ui.js:160
	("complete",512,"echo document.getElementById(\"")@chrome://liberator/content/liberator.js:587
	onEvent([object KeyboardEvent])@chrome://liberator/content/ui.js:840
	([object KeyboardEvent])@chrome://liberator/content/events.js:1493
	([object KeyboardEvent])@chrome://liberator/content/events.js:557
}}}
Comment 16 by maglion...@gmail.com, Oct 05, 2009
Originally noted by by maglione.k, on 2008-11-27 21:26:46:

Plugins are now loaded into their own namespaces.

This has been updated with better *NS completion, along with eval completion (yeah...).
Comment 17 by maglion...@gmail.com, Oct 05, 2009
Originally noted by by janus_wel, on 2008-10-29 11:56:25:

jscompletion.js don't work on current Vimperator version. so make the patch.
Comment 18 by maglion...@gmail.com, Oct 05, 2009
Originally noted by by anekos, on 2008-11-01 10:01:30:

This script taints "liberator.modules".
Vimperator's scripts should be surrounded by (function(){ })();.
Comment 19 by maglion...@gmail.com, Oct 05, 2009
Originally noted by by maxauthority, on 2008-11-24 12:39:45:

I agree with anekos, although we should probably make that default in vimperator, so script authors wouldn't need this "hack". I don't think there are many plugins which really need access to other plugins data. If so, they should use liberator.plugins.foo = ...;

This plugin is broken for the latest vimperator versions:

vimperator: TypeError: util.arrayIter is not a function::
fileName: "chrome://liberator/content/io.js -> file:///home/maxauthority/.vimperator/plugin/jscompletion.js"
lineNumber: 14
message: "util.arrayIter is not a function"
stack: 	elemToString([object XULElement])@chrome://liberator/content/io.js -> file:///home/maxauthority/.vimperator/plugin/jscompletion.js:14
	("getElementById",[object XULDocument],"",[object Array])@chrome://liberator/content/io.js -> file:///home/maxauthority/.vimperator/plugin/jscompletion.js:23
	_complete([object Object])@chrome://liberator/content/completion.js:743
	_javascript([object Object])@chrome://liberator/content/completion.js:1235
	([object Object],[object Object],false,-1)@chrome://liberator/content/ui.js:504
	ex([object Object])@chrome://liberator/content/completion.js:1162
	fork("ex",0,ex,[object Object])@chrome://liberator/content/completion.js:222
	("echo document.getElementById(\"")@chrome://liberator/content/ui.js:160
	("complete",512,"echo document.getElementById(\"")@chrome://liberator/content/liberator.js:587
	onEvent([object KeyboardEvent])@chrome://liberator/content/ui.js:840
	([object KeyboardEvent])@chrome://liberator/content/events.js:1493
	([object KeyboardEvent])@chrome://liberator/content/events.js:557

Comment 20 by maglion...@gmail.com, Oct 05, 2009
Originally noted by by maxauthority, on 2008-11-24 12:40:18:

Sorry, the latest commit should be:

{{{
vimperator: TypeError: util.arrayIter is not a function::
fileName: "chrome://liberator/content/io.js -> file:///home/maxauthority/.vimperator/plugin/jscompletion.js"
lineNumber: 14
message: "util.arrayIter is not a function"
stack: 	elemToString([object XULElement])@chrome://liberator/content/io.js -> file:///home/maxauthority/.vimperator/plugin/jscompletion.js:14
	("getElementById",[object XULDocument],"",[object Array])@chrome://liberator/content/io.js -> file:///home/maxauthority/.vimperator/plugin/jscompletion.js:23
	_complete([object Object])@chrome://liberator/content/completion.js:743
	_javascript([object Object])@chrome://liberator/content/completion.js:1235
	([object Object],[object Object],false,-1)@chrome://liberator/content/ui.js:504
	ex([object Object])@chrome://liberator/content/completion.js:1162
	fork("ex",0,ex,[object Object])@chrome://liberator/content/completion.js:222
	("echo document.getElementById(\"")@chrome://liberator/content/ui.js:160
	("complete",512,"echo document.getElementById(\"")@chrome://liberator/content/liberator.js:587
	onEvent([object KeyboardEvent])@chrome://liberator/content/ui.js:840
	([object KeyboardEvent])@chrome://liberator/content/events.js:1493
	([object KeyboardEvent])@chrome://liberator/content/events.js:557
}}}
Comment 21 by maglion...@gmail.com, Oct 05, 2009
Originally noted by by maglione.k, on 2008-11-27 21:26:46:

Plugins are now loaded into their own namespaces.

This has been updated with better *NS completion, along with eval completion (yeah...).
Comment 22 by maglion...@gmail.com, Oct 15, 2009
New attachments:
  jscompletion.js –  (maglione.k – 2008-11-27 21:20:12)
jscompletion.js
3.9 KB   View   Download
Sign in to add a comment

Powered by Google Project Hosting