danielgtaylor / danielgtaylor/nesh
wished feature: multi line editing in history
- Dominant language
- CoffeeScript
- Stars
- 284
- Forks
- 23
- PR merge metrics
- No merged PRs in 30d
Description
I understand current implementation of history is by lines only; same as in bash or python REPL; but came from python world, I usually use ipython (which is a 3rd party pip package) instead of the default python shell that provides additional features like history persistence, and this nice feature: multi lines editing in history
if node doesn't want to improve its default REPL shell line editing experience, I would wish this nice feature can be done by some 3rd party project like this Node Enhanced Shell, or by a plugin
``` console
➸ ~/.local/bin/ipython
Python 2.7.10 (default, Oct 14 2015, 16:09:02)
Type "copyright", "credits" or "license" for more information.
IPython 4.1.1 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
In [1]: def fibonacci(n):
...: a, b = 1, 1
...: while a < n:
...: a, b = a+b, a
...: return a
...:
In [2]: fibonacci(3)
Out[2]: 3
In [3]: fibonacci(4)
Out[3]: 5
In [4]: fibonacci(18)
Out[4]: 21
In [5]: def fibonacci(n): <= here is brought by arrow up key, it can find back multi lines for editing
a, b = 1, 1
while a < n:
a, b = a+b, a
return a
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.