ebpa / tui.el

An experimental text-based UI framework for Emacs modeled after React - **requires emacs 26.1 or newer**
GNU General Public License v3.0
183 stars 6 forks source link

Screenshots? #2

Closed matthew-piziak closed 1 year ago

matthew-piziak commented 5 years ago

A picture is worth a thousand words, and screenshots are certainly the first thing I look for when I am looking at a UI package. If you like I can load up your demos and make a PR?

ebpa commented 5 years ago

Absolutely! That would be wonderful. Thank you!

If you have thoughts for demos I'd love to hear them too.

matthew-piziak commented 5 years ago

Sorry, I can't figure out how to install this library.

Error (use-package): tui/:catch: Cannot open load file: Not a directory, components/tui-button.el

This happens if I follow your installation instructions, but also with the following straight.el setup:

(use-package tui
  :straight (tui :type git :host github :repo "ebpa/tui.el"))
ebpa commented 5 years ago

@matthew-piziak Sorry about that! I can't check right now, but try including a :files parameter with the folder names (I'm not using the use-package plugin):

(use-package tui
  :straight (tui :type git :host github :repo "ebpa/tui.el" :files ("*.el" "components" "layout" "demo" "snippets")))

For my non-local configuration I use straight directly like so (this is for the dev branch):

(straight-use-package
     '(tui :type git :host github :repo "ebpa/tui.el" :branch "dev" :files ("*.el" "components" "layout" "demo" "snippets")))
matthew-piziak commented 5 years ago

Thanks, that installation config worked.

The expander seems to work but Tic-Tac-Toe is wonky.

screenshot

ebpa commented 5 years ago

Great! I should have mentioned that the tic-tac-toe rendering is broken at the moment. It involves some indirect buffer rendering behavior (the tui-absolute-container component) that is currently buggy with recursive layouts. I'm not sure when I'll have time to fix that since it was initially implemented to demonstrate the rather contrived tic-tac-toe example, but you will find that components are otherwise functional.

ebpa commented 1 year ago

@matthew-piziak FYI, I fixed the tic-tac-toe demo for Emacs Conf 2021 (0.0.3) and confirmed just now that it's functional in the latest version I just pushed (0.0.4).