Readit News logoReadit News
dualogy commented on Show HN: Fresh – A new terminal editor built in Rust   sinelaw.github.io/fresh/... · Posted by u/_sinelaw_
dualogy · 13 days ago
Goood stuff!

One of my long-standing "would make if I had the time and perseverance" themes has been a terminal text editor that's hugely VSCode-like + compatible, so always glad to hear anyone going anywhere near that, and hence I perked up from these:

> Prioritizes standard keybindings and a minimal learning curve.

> Extensibility: Uses TypeScript (via Deno) for plugins, making it accessible to a large developer base.

Because where you are now with Fresh, you're probably really not far from supporting say `settings.json`, `launch.json`, `tasks.json`, `keybindings.json`, `.tmTheme`s and theme `.json`s, and indeed bringing up a VSCode-API-implementing "extension host" that can load up and run/host most `.vsix`es. Now, being terminal-based you'd skip over certain feature subsets such as webviews, custom (non-text) editors and the like... and might postpone Notebooks and such fancies initially, but:

Consider! 1000s of high-value, capable, tech-specific dev extensions out there, all readily supported by your just-spawned new editor. Doesn't that sound pretty exciting?

After all, there's a huge subset of VSCode fans who'd always switch in a heartbeat to a just-simply-non-Electron version (whether native or terminal) of the very same feature-scape & extensions & UI dev experience if only it was made and to max compatibility (and MS won't ever do so).

All that's missing (from screenshot glance) is the other sidebars & panels in addition to File Explorer =)

Will be putting your Fresh on my Github Watch list, but then again, I never really read the GH feed anyway.. but maybe I'll remember to check back in every quarter or so =)

Deleted Comment

dualogy commented on Build desktop applications using Go and Web Technologies   github.com/wailsapp/wails... · Posted by u/selvan
fithisux · 22 days ago
Gio-UI seems to be more suitable for desktop applications because it is native.
dualogy · 22 days ago
Also very neat is DearImgui via either https://github.com/AllenDang/giu (Go-convenient wrapper) or https://github.com/AllenDang/cimgui-go/ (raw bindings)
dualogy commented on Build desktop applications using Go and Web Technologies   github.com/wailsapp/wails... · Posted by u/selvan
breve · 22 days ago
dualogy · 22 days ago
That is both .NET stuff, Wails is one of various Go options.
dualogy commented on Marko – A declarative, HTML‑based language   markojs.com/... · Posted by u/ulrischa
fouc · a month ago
Speaking of writing javascript instead of JSX, I'm a big fan of the hyperscript approach:

      var ListComponent = () => {
        let count = 0, selected = null
        return {
          view: ({attrs: {items}}) =>
            m("div", [
              m("p", "Clicked: " + count + " times"),
              m("ul", items.map(item =>
                m("li", {
                  onclick: () => { count++; selected = item },
                  style: {cursor: "pointer", color: item === selected ? "blue" : "black"}
                }, item)
              )),
              selected && m("p", "Selected: " + selected)
            ])
        }
      }

dualogy · a month ago
> Speaking of writing javascript instead of JSX, I'm a big fan of the hyperscript approach

Speaking of writing JS instead of JSX or your example, I like the vanjs.org approach:

    const Hello = () => div(
      p("Hello"),
      ul(
        li("World"),
        li(a({href: "https://vanjs.org/"}, "VanJS")),
      ),
    )
    van.add(document.body, Hello())

dualogy commented on Ratatui – App Showcase   ratatui.rs/showcase/apps/... · Posted by u/AbuAssar
bodge5000 · a month ago
I love Godot and think it has a great deal of potential for this kind of thing. Sure using a game loop isn't really very efficient for basic UI application, but in your case that doesnt really matter too much. That being said, I really don't like how it handles UI themeing.

Buttons are a good example. If you want to define a button theme, you have to individually define the theme for every possible state the button can be in. No inheritance, the best you can do is copy and paste them over (which means if you want to tweak one, you have to tweak them all). Compared to something like CSS, its a nightmare to theme even slightly interactive Godot GUI's

dualogy · a month ago
Yeah that seems like an area for improvement in Godot's GUI system indeed. For my stuff, I never had a need for theming, but good to keep in mind if one ever wanted to do an app shared with others.

Another homegrown personal tool I had once written was in Go with DearImgui, so basically with AllenDang/giu... also really quite rapid dev and lean-enough binary / perf.

But Godot is wysiwyg for GUI stuff, so that's a plus..

dualogy commented on Ratatui – App Showcase   ratatui.rs/showcase/apps/... · Posted by u/AbuAssar
dlivingston · a month ago
Godot is a heavy dependency for making small tools, no?
dualogy · a month ago
Release build of such a Godot-built tool is between 60-70 MB. Other than that, it seems fast enough & RAM-friendly enough for the usual simple use-cases. Game engines tend toward self-optimization over time.

u/dualogy

KarmaCake day3246January 16, 2008
About
Happy to talk shop, email hn at my domain: metaleap.net

github.com/metaleap

meta-leap.itch.io

meet.hn/city/50.554732400000006,10.373504956892056/Meiningen

View Original