Caret/js/ui
Thomas Wilburn 74d33a4238 Use the just-loaded project settings for blacklist generation instead of relying on Settings.
This fixes #470, or at least makes it less ambiguous. It's not entirely clear where the race condition
was causing the settings to contain bad results, but this fixes the problem.
2015-11-07 17:54:10 -08:00
..
cli.js Fixes #292 2014-08-30 23:56:33 -07:00
contextMenus.js Fix a bug in context menus. 2014-07-11 20:33:49 -07:00
dialog.js Focus default dialog if you click away from it. 2014-05-12 21:17:55 -07:00
keys.js Match menus to keys under new system 2015-03-17 15:52:36 -07:00
menus.js Match menus to keys under new system 2015-03-17 15:52:36 -07:00
palette.js Fixes #370 - sorry for the delay 2015-06-25 19:14:27 -07:00
projectManager.js Use the just-loaded project settings for blacklist generation instead of relying on Settings. 2015-11-07 17:54:10 -08:00
readme.rst Adding a search bar and project-wide search 2015-10-22 20:47:23 -06:00
searchbar.js Adding project search history 2015-11-04 23:59:35 -07:00
statusbar.js Code cleanup and commenting. 2014-02-26 22:34:02 -08:00
theme.js Prefix comma-separated styles with .ace-caret 2015-04-11 19:11:42 -07:00

Module description - ui/\*
==========================

cli.js
------

Creates the UI and bindings for a "command line" that can run Caret
commands directly. Useful when testing a new command, since you don't
need to change keys.json or menu.json in order to run it.

contextMenus.js
---------------

Simplifies the process of adding Chrome context menus to page links,
including adding a basic REST-style router for getting parameters out of
the link URL. Exposes a ``register`` method for setting up the actual
menu and its callback, and a ``makeURL`` method to help with making
route URLs that correctly start with the app's extension ID.

dialog.js
---------

Exposes a function that will pop up a dialog box, since Chrome apps are
not allowed to use ``alert()``, ``confirm()``, or ``prompt()``.
Reasonably customizable.

keys.js
-------

Reads the local keyboard settings and registers on the document body to
convert them into commands. Also handles unbinding any Ace commands that
would otherwise collide. Exposes no external methods or data.

menus.js
--------

Generates the menu bar from the local menu settings file. Exposes no
external methods or data at this time.

palette.js
----------

Sets up the command palette and returns it as a singleton for any other
modules that might want to trigger it or alter its data, although it is
recommended that other modules simply send ``palette:*`` commands
instead.

projectManager.js
-----------------

Tracks any current project settings, files, and navigable directories.
Exposes the manager object to dependent modules, primarily so that the
palette can get the list of files for Go To File.

searchbar.js
------------

Allows the user to search all files in the project. Exposes only the
``searchbar:show-project-search`` command.

statusbar.js
------------

Sets the status text, and returns an interface with ``setMessage()``,
``clearMessage()``, and ``toast()`` methods. It's recommended to use the
``status:*`` commands instead of requiring this module directly.