mojo.el/COMMANDS

156 lines
3.7 KiB
Text

Default key bindings:
* C-c C-c a -- mojo-switch-to-assistant
* C-c C-c i -- mojo-switch-to-appinfo
* C-c C-c I -- mojo-switch-to-index
* C-c C-c n -- mojo-switch-to-next-view
* C-c C-c s -- mojo-switch-to-sources
* C-c C-c S -- mojo-switch-to-stylesheet
* C-c C-c v -- mojo-switch-to-last-view
* C-c C-c SPC -- mojo-switch-file-dwim
* C-c C-c C-d -- mojo-target-device
* C-c C-c C-e -- mojo-emulate
* C-c C-c C-p -- mojo-package
* C-c C-c C-r -- mojo-package-install-and-inspect
* C-c C-c C-s -- mojo-generate-scene
* C-c C-c C-t -- mojo-toggle-target
The complete command list:
Code generation
---------------
mojo-generate
Generate a new Mojo application in the mojo-project-directory.
mojo-generate-scene
Generate a new Mojo scene for the application found by mojo-root.
(a.k.a. the current application)
Packaging and device/emulator interactions
------------------------------------------
mojo-emulate
Launch the palm emulator.
mojo-package
Package the specified application (defaults to current app id).
mojo-install
Install the specified package (defaults to current app id).
The emulator needs to be running.
mojo-list
List all installed packages.
mojo-delete
Remove the specified application. (defaults to current app id)
mojo-launch
Launch the specified application in the emulator. (defaults to
current app id)
mojo-close
Close specified application. (defaults to current app id)
mojo-inspect
Run the dom inspector on the specified application. (defaults to
current app id)
mojo-hard-reset
Perform a hard reset, clearing all data.
mojo-package-install-and-launch
Package, install, and launch the current app.
mojo-package-install-and-inspect
Package, install, and launch the current app for inspection.
mojo-target-device
Set the target device to USB.
mojo-target-emulator
Set the target device to the emulator.
mojo-toggle-target
Automatically change the target device from 'usb' to 'tcp' and vice
versa.
Quickly switch buffers
----------------------
mojo-switch-to-assistant
Switch to the corresponding assistant from any view file.
mojo-switch-to-main-view
Switch to the main view from an assistant.
mojo-switch-to-next-view
Switch to the next view file, alphabetically. Wraps around at the
end.
mojo-switch-to-last-view
Switch to the last visited view buffer (excluding the current
buffer).
mojo-switch-to-appinfo
Switch to the appinfo.json file.
mojo-switch-to-sources
Switch to the sources.json file.
mojo-switch-to-index
Switch to the root index.html file.
mojo-switch-to-stylesheet
Switch to the main stylesheet.
mojo-switch-file-dwim
Switch to the next view from a view, and to the main view from an
assistant. From any other file switch to appinfo.json.
Manage framework_config.json
----------------------------
mojo-debugging-enabled-p
See if debugging is enabled.
mojo-log-events-p
See if event logging is enabled.
mojo-timing-enabled-p
See if timing is enabled.
mojo-use-native-json-parser-p
See if the native JSON parser is used (if available).
mojo-log-level
See the log level.
mojo-escape-html-in-templates-p
See if HTML is escaped in templates.
mojo-set-debugging-enabled
Enable or disable debugging.
mojo-toggle-debugging
Toggle debugging in framework_config.json.
mojo-set-log-events
Enable or disable event logging.
mojo-set-timing-enabled
Enable or disable timing.
mojo-set-use-native-json-parser
Enable or disable use of the native JSON parser.
mojo-set-log-level
Set the log level.
mojo-set-escape-html-in-templates
Enable or disable escaping of HTML in templates.