Skip to content

Version II

Prince John Wesley edited this page Nov 5, 2015 · 31 revisions

Feature Improvements

 Download npm modules on demand

Mancy will try to install unavailable npm modules to default user data directory.

  • Windows : C:\Users\%USERNAME%\AppData\Local\mancy\User Data\node_modules
  • Mac OS X: ~/Library/Application Support/mancy/node_modules
  • Linux: ~/.config/mancy/Default/node_modules

 Babel support

  • babel compilation is turned off by default.
  • To turn on/off, use babel transform property from preference window(Use Preference... from menu or gear icon in status bar)

 await with auto async wrapper

  • async auto wrapping is enabled by default
  • Auto wrapping is applicable for the below forms
    • await expression
    • let value = await expression
  • Wrapping process transforms the input to below form
(async function(){ let result = (await expression); return result; }())
let value = (async function(){ let result = (await expression); return result; }())

 Data visualization support

  • Integer representation (bin, oct, dec and hex)
  • Regular expression live editor
  • Buffer explorer
  • HTML view
  • CSS color view
  • base64 detection
  • Basic chart representation of data
  • Image detection / display
  • Download buffers support

 Support to break long lasting commands

  • Set timeout in preference window for long lasting command like this:
while(true) {}

 Preference window

Use Preference... from menu or gear icon in status bar to access preference window.

  • Theme - Toggle theme preference(default dark).
  • REPL Mode - Change node REPL mode(default magic).
  • Babel Transform - Toggle babel transcompilation(default false).
  • Auto async wrapper - Toggle on/off the auto async wrapping feature for bare await(default true).
  • Execution timeout(ms) - timeout in milliseconds for long lasting commands(default: 1 minute). 0 means no timeout set.
  • Auto complete popup delay(ms) - trigger delay for auto command completion in milliseconds(default 250ms).
  • Toggle run mode (⇧ + ↲) / ↲ - toggle support for run command mode(default false).
  • Auto suggest selection on ↲ - if turned off, auto suggest selection will be ignored on enter.

preference-light preference-dark

 Promise output tracking

Promise output keeps track of promise state like pending, rejected or resolved and updates the resolved output or rejected reason.

 Source file open support for node modules(.source name)

  • .source name try to resolve the module or file name(just like require) and shares the link to open the file in default application.
  • native modules will be marked and displayed as 'native' module.
  • source resolving feature is available in exceptions(stack trace) too.

 No special meaning for _

In node repl's context, _(underscore) is a special variable that contains the result of the last expression.
In this version, there is no special meaning for _ and therefore, the below code runs as expected.

_

 Syntax highlight as we type

Syntax highlight is supported for active prompt area

live-highlight

Clone this wiki locally