nesh icon indicating copy to clipboard operation
nesh copied to clipboard

Setting/filtering output

Open zumbalogy opened this issue 10 years ago • 1 comments

These are feature requests that I would like to see (or know about if they already exist). If I get the time, I may work on them myself and post or PR.

Both features could be implemented by setting up a filter on all return statements.

I would like to truncate some of my error messages (ReferenceError: foo is not defined could be under 5 lines, for me, for example). I would also like to define a prompt for returned statements. It could look something like:

my_prompt> 2 + 2 => 4

where '=>' is defined by the user.

zumbalogy avatar Feb 23 '15 03:02 zumbalogy

This sounds like it should be possible via a plugin. Take a look at the README and the example plugins that are both included with Nesh and the ones others have published on npm. :+1:

danielgtaylor avatar Feb 24 '15 14:02 danielgtaylor