Bug 32673 - JS Console should keep command history between reloads
Summary: JS Console should keep command history between reloads
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All OS X 10.5
: P2 Enhancement
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-17 10:40 PST by Onar Vikingstad
Modified: 2014-12-09 10:45 PST (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Onar Vikingstad 2009-12-17 10:40:21 PST
It'd be great if the WebKit Inspector Javascript console would remember commands between 'sessions' or reloads. Today, using the up and down arrows to go through your command history only works as long as you don't refresh the browser window. The history should probably be kept per URL, similar to the history in a unix shell that is kept per user.
Comment 1 Patrick Mueller 2009-12-18 13:41:35 PST
I've wanted a capability like this also.  My thought was to have a UI where you could store/edit multi-line snippets of code, then execute with a button click.  Maybe an accelerator key.  Ability to prompt for parameters, and what not, perhaps.

This could perhaps work as a sidebar pane, as a peer of and underneath breakpoints, where the text displayed in the pane was a 'name' of the snippet.  And there would be a gesture available to edit the code.

Perhaps there would be a gesture from the console where you could add a "command" you previously ran to this snippet section.