Skip to content

Commit

Permalink
issue6521: add help entries for $2, $3, $4 + completion support
Browse files Browse the repository at this point in the history
  • Loading branch information
fflorent committed Jun 13, 2013
1 parent 8b566da commit d58716e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion extension/content/firebug/console/commandLineExposed.js
Expand Up @@ -33,7 +33,7 @@ var commandNames = ["$", "$$", "$n", "$x", "cd", "clear", "inspect", "keys",
var consoleShortcuts = ["dir", "dirxml", "table"];

// List of console variables.
var props = ["$0", "$1", "$p", "$_"];
var props = ["$0", "$1", "$2", "$3", "$4", "$p", "$_"];

// Registered commands, name -> config object.
var userCommands = Object.create(null);
Expand Down
3 changes: 3 additions & 0 deletions extension/locale/en-US/firebug.properties
Expand Up @@ -1663,6 +1663,9 @@ console.cmd.help.profileEnd=Turns off the JavaScript profiler and prints its rep
console.cmd.help.table=Allows to log provided data using tabular layout. The method takes one required parameter that represents table-like data (array of arrays or list of objects). The optional second parameter can be used to specify columns and/or properties to be logged.
console.cmd.help.$0=Represents the last element selected via the Inspector.
console.cmd.help.$1=Represents the second last element selected via the Inspector.
console.cmd.help.$2=Represents the third last element selected via the Inspector.
console.cmd.help.$3=Represents the fourth last element selected via the Inspector.
console.cmd.help.$4=Represents the fifth last element selected via the Inspector.
console.cmd.help.$n=Returns one of the 5 last elements selected via the Inspector. This method takes one required parameter, which represents the index of the element (starting at 0).
console.cmd.help.help=Displays help for all available commands.
console.cmd.help.include=Includes a remote script.
Expand Down

0 comments on commit d58716e

Please sign in to comment.