Coder Social home page Coder Social logo

nim-noise's People

Contributors

jangko avatar matthiaswh avatar ringabout avatar vindaar avatar xoich avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nim-noise's Issues

miscellaneous features

  • zsh allows undo last editing command, so that we can undo the effects of CTRL-W for example

  • [EDIT] zsh allows to skip duplicates when navigating history (they're saved in history but only each unique instance is recalled when navigating with up arrow)

Small feature request

CTRL-C is used to abort a line/the program. It would be nice if the ESC-key can also be used in this context. But then readLine should return something else then a bool.

One should be able to use the ESC-key to cancel some user input (soft abort) and CTRL-C to abort the program (hard abort).

Allow adding custom keybindings

Hello, it seems this is not possible at the moment, but that it could be allowed by enabling the injection of custom procs to the Noise.procs list. Let me know what you think, thank you.

Create a tag including the patch for ARC/ORC

Create a tag including ac14183, otherwise it fails inim.

/Users/runner/work/Nim/Nim/pkgstemp/inim/inim.nim(4, 20) [DuplicateModuleImport]
2022-09-06T14:46:37.7595500Z ...................
2022-09-06T14:46:37.7596130Z /Users/runner/.nimble/pkgs/noise-0.1.4/noise.nim(278, 5) Error: undeclared identifier: 'shallowCopy'
2022-09-06T14:46:37.7596740Z candidates (edit distance, scope distance); see '--spellSuggest': 
2022-09-06T14:46:37.7597300Z  (4, 4): 'shallow' [proc declared in /Users/runner/work/Nim/Nim/lib/system.nim(2807, 6)]
2022-09-06T14:46:37.7597840Z  (4, 4): 'shallow' [proc declared in /Users/runner/work/Nim/Nim/lib/system.nim(2817, 6)]
2022-09-06T14:46:37.7598210Z stack trace: (most recent call last)

Multiline support?

First of all, good work on this library! One thing confuses me a little bit though: do you really support editing multiple lines?

I tried:

  • Entering text till the end of the line, and when the line wraps the text gets garbled
  • Pressing ENTER or SHIFT+ENTER accepts input

Is there any way to edit multiple lines? How?

distinguish between ctrl C vs ctrl D

in bash, python3 and pretty much all repls, ctrl C doesn't run the current entered line but also doesn't exit the repl, whereas ctrl D (when there is no input written) exits the REPL.

here, both ctrl C and ctrl D exit the REPL. How can we at least distinguish whether ctrl C or ctrl D was entered?

example

bash-3.2$ asdf # control C was entered here
bash-3.2$ asdf # control D was entered here
bash-3.2$ exit

Add option to use Emacs behaviour for case editing commands

Hello, in Emacs, but also GNU readline, bash and other shell the case editing behavior is different than used here. In Emacs when you press one of these keys inside a word, only the characters up to the end of the word are affected, so if | is the cursor, and you are in this situation foo|bar and then you press M-C in the shell you get fooBar, with noise instead you get Foobar. This is the same for the other case commands.

I think there should be a compiler option to enable classic behavior.

Runtime error

In my code I use the same order as the Readme:

  • Load history
  • Set prompt
  • Set completion hook
  • Start loop to read lines

When I hit TAB (as the first character) on a line I get a runtime error.

Screen Shot 2020-10-22 at 10 41 43 AM

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.