nathanfallet / ocaml

An OCaml editor, top level, and learning place for iOS, iPadOS and macOS
https://ocaml-learn-code.com
GNU General Public License v3.0
70 stars 8 forks source link

Top-level enhancement #30

Open Jules02 opened 2 years ago

Jules02 commented 2 years ago

MacOS app

Is your feature request related to a problem? Please describe. When I try the code I just ran in the top level, I'm always frustrated with always having to completely rewrite commands.

Describe the solution you'd like Most shells/consoles - e.g. MacOS' Terminal - have a feature that allows you to fill the input with the last command that has been run just by pressing the upper arrow. It is a very practical functionality, especially when you're trying functions you're writing with different inputs.

Another feature I'd love to see that may not be worth a new Issue but still concerns top-level, is an automatic scrolling of this section. When you execute a command, you always have to scroll down manually to see the output. It may seem minor but it would be nice if the top-level scroll downed automatically !

nathanfallet commented 2 years ago

Linked to #19

nathanfallet commented 2 years ago

For arrow shortcuts, I put this here: https://stackoverflow.com/questions/65584926/swiftui-keyboardshortcut-with-arrow-keys For scrolling, it's supposed to be working, but it's not. It's a bug.