Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Split Markdown view in editor. #30

Open
nfisher opened this issue Aug 11, 2016 · 2 comments
Open

Feature: Split Markdown view in editor. #30

nfisher opened this issue Aug 11, 2016 · 2 comments

Comments

@nfisher
Copy link

nfisher commented Aug 11, 2016

Hello,

Leaps looks awesome. Have you given thought to having a markdown preview option something similar in the editor to the following:

+------+----------------+----------+
|      |                |          |
| File | Input          | Comments |
| List |                |          |
|      |                |          |
|      +----------------+          |
|      |                |          |
|      |                |          |
|      | Preview        |          |
|      |                |          |
+------+----------------+----------+

I suppose it could be more generalised to being a command output pane but markdown preview would be nice as a first kick of the tires. :)

Kind Regards,
Nathan

@Jeffail
Copy link
Owner

Jeffail commented Sep 24, 2016

Hey @nfisher, I've wanted to add this in for a while but my front-end skills are my most lacking. To be honest the entire UI could do with some TLC from a more qualified dev/designer.

@gedw99
Copy link

gedw99 commented Nov 19, 2021

@Jeffail you could rewrite the GUI in GIOUI.

Golang code on both side lowers the work and maintenance.
And opens up lots of new functionality possibilities.

The current text editor is pretty capable. cut and paste and tabs work also.
Demo:https://gioui.org//files/wasm/kitchen/index.html
Code: https://github.com/gioui/gio-example/blob/main/kitchen

You get complete control over the Ops of the Text Editor. See here: https://github.com/gioui/gio-example/blob/main/kitchen/kitchen.go#L237
This is because every key stroke by the user can be acted on in the control loop.

The websockets lib you use would need to be changed to https://pkg.go.dev/nhooyr.io/websocket
Here is a good example: https://git.sr.ht/~whereswaldon/pointstar

there is a gio chat that works currently too.
https://git.sr.ht/~gioverse/chat
https://github.com/gioverse/chat
run https://github.com/gioverse/chat/tree/main/example/kitchen to see it in action.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants