<commit_before>httpK3y
=======

Toggle keyboard shortcuts from outside of Firefox or Prism!

Usage
-----

### FYI

Replace `PORT` with port number that you have chosen for httpK3y or with default one – `7700`.

### Configuration

+ In Firefox or Prism main window go to Tools > Add-ons > (in list find httpK3y and press Preferences);
+ If server is running, press `Stop`;
+ Now in `Port` input box, select your desired port number;
+ Check `Start with ...` checkbox, if you want to start server, when you open Firefox or Prism;
+ Press `Start` to run server;

### Giving it a try

To list all available methods (keyboard shortcuts ids) go to `http://localhost:PORT/` (without quotes). In response you should be greeted with something like this:

#### List of available methods

* key_newNavigator
* key_newNavigatorTab
* focusURLBar
* focusURLBar2
* key_search
* key_search2
* key_openDownloads
* key_errorConsole
* openFileKb
* key_savePage
* printKb
* key_close
* key_closeWindow
....

These all are methods that are available for you to use throw httpK3y server. Just navigate your way to `http://localhost:PORT/method_name`. Example: if you want to open `Downloads` window remotly, navigate to `http://localhost:PORT/key_openDownloads` (without quotes). Downloads windows should appear in front of your eyes :)

And of course you don't have to be inside Firefox to open that window:

    $ wget http://localhost:PORT/key_openDownloads --spider --no-cache
    
I hope you get the point ;)
Have fun!

Building bundle for Firefox
---------------------------

Show some git love (if you haven't already)

    $ cd ~
    $ git clone git://github.com/intarstudents/httpK3y.git

Navigate your way to httpk3y's git directory and start hardcore archiving action

    $ cd httpK3y/
    $ rm -rf httpK3y.xpi && zip -r httpK3y.xpi {httpd,skin,components,content,defaults,install.rdf,chrome.manifest}
    <commit_msg>I need learn to write :/<commit_after>httpK3y
=======

Toggle keyboard shortcuts from outside of Firefox or Prism!

Usage
-----

### FYI

Replace `PORT` with port number that you have chosen for httpK3y or with default one – `7700`.

### Configuration

+ In Firefox or Prism main window go to Tools > Add-ons > (in list find httpK3y and press Preferences);
+ If server is running, press `Stop`;
+ Now in `Port` input box, select your desired port number;
+ Check `Start with ...` checkbox, if you want to start server, when you open Firefox or Prism;
+ Press `Start` to run server;

### Giving it a try

To list all available methods (keyboard shortcuts ids) go to `http://localhost:PORT/` (without quotes). In response you should be greeted with something like this:

#### List of available methods

* key_newNavigator
* key_newNavigatorTab
* focusURLBar
* focusURLBar2
* key_search
* key_search2
* key_openDownloads
* key_errorConsole
* openFileKb
* key_savePage
* printKb
* key_close
* key_closeWindow
....

These all are methods that are available for you to use throw httpK3y server. Just navigate your way to `http://localhost:PORT/method_name`. Example: if you want to open `Downloads` window remotely, navigate to `http://localhost:PORT/key_openDownloads`. Downloads windows should appear in front of your eyes.

And of course you don't have to be inside Firefox to open that window:

    $ wget http://localhost:PORT/key_openDownloads --spider --no-cache
    
I hope you get the point ;)
Have fun!

Building bundle for Firefox
---------------------------

Show some git love (if you haven't already)

    $ cd ~
    $ git clone git://github.com/intarstudents/httpK3y.git

Navigate your way to httpk3y's git directory and start hardcore archiving action

    $ cd httpK3y/
    $ rm -rf httpK3y.xpi && zip -r httpK3y.xpi {httpd,skin,components,content,defaults,install.rdf,chrome.manifest}
    
{'fraction_non_alphanumeric': 0.10265161459700708, 'fraction_numerical': 0.007876082961407193, 'mean_word_length': 3.8045397225725095, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1131708', 'n_tokens_mistral': 1163, 'n_tokens_neox': 1111, 'n_words': 471}