Live data from Hacker News

Show HN: Fresh – A new terminal editor built in Rust

sinelaw.github.io

101–110 of 158 posts

Re: Show HN: Fresh – A new terminal editor built in Rust

#101

I'm a little annoyed that for a Rust based tool the recommended installation command is to use npm. Why? Is Cargo not good enough? Cargo seems exceptionally well to me.

I get the frustration, but I think the npm option actually makes sense here. A lot of users who’d benefit from a fast Rust tool aren’t Rust developers and won’t have Cargo installed. Shipping it through npm lowers the barrier while still giving everyone the performance benefits. It’s not a knock on Cargo, just a way to make the tool more accessible.

Anything that uses npm is fundamentally untrustworthy. I would argue that if you make an editor you should write software for people that want to use and write good software, which isn't anyone that unironically uses npm with anything other than distaste.

Re: Show HN: Fresh – A new terminal editor built in Rust

#102

Earlier quoted context omitted.

Thanks for reminding me. Unfortunately yes, it's because of v8 (for Deno). For extensions, the choice was either TypeScript (and get this bloat) or go with Lua and a much smaller binary (but less popular language). But - I just realized stripping it brings it down to 76MB so I guess that's ok! Will push a commit :)

> For extensions, the choice was either TypeScript (and get this bloat) or go with Lua and a much smaller binary (but less popular language). Incredible, the technical choice got overridden by popularity, leading straight to bloat

I see extension language choice as a user-facing UX decision, and convenience is a leading concern.

Re: Show HN: Fresh – A new terminal editor built in Rust

#103

I'm a little annoyed that for a Rust based tool the recommended installation command is to use npm. Why? Is Cargo not good enough? Cargo seems exceptionally well to me.

Can't it be packaged as a binary/whatever that would install without either cargo or npm?

Re: Show HN: Fresh – A new terminal editor built in Rust

#104
post #103

I'm a little annoyed that for a Rust based tool the recommended installation command is to use npm. Why? Is Cargo not good enough? Cargo seems exceptionally well to me.

Can't it be packaged as a binary/whatever that would install without either cargo or npm?

You can use: cargo install fresh-editor

Or you can use npm

Or you can download release binary packages from Github releases.

The problem is which option to make more prominent / first

Re: Show HN: Fresh – A new terminal editor built in Rust

#105

You should put standard keyboard bindings as a pitch on the website as well. Most people in the market for a terminal editor are probably looking for something that doesn't require them to learn a set of keyboard shortcuts that's entirely different from every other piece of software that they use. I searched for that desperately until I discovered micro[1]. Here's a quick comparison between micro and fresh: - Fresh i…

Thanks for testing that! I'll bump the keybinding thing too.

Getting included in distributions is a worthy goal... So many things to do

Re: Show HN: Fresh – A new terminal editor built in Rust

#106
post #98

Earlier quoted context omitted.

I get the frustration, but I think the npm option actually makes sense here. A lot of users who’d benefit from a fast Rust tool aren’t Rust developers and won’t have Cargo installed. Shipping it through npm lowers the barrier while still giving everyone the performance benefits. It’s not a knock on Cargo, just a way to make the tool more accessible.

npm is certainly not something everyone has.

Not everyone it's a web developer. Sysadmin and system programmers (and older millenials) don't care and don't want to install anything related to NPM.

Re: Show HN: Fresh – A new terminal editor built in Rust

#107

I'm a little annoyed that for a Rust based tool the recommended installation command is to use npm. Why? Is Cargo not good enough? Cargo seems exceptionally well to me.

I did it because not everybody has cargo installed. I'm using cargo-dist to create this npm package.

i just used npx to try on my working machine where i do not have cargo

Re: Show HN: Fresh – A new terminal editor built in Rust

#108

Good keybindings, some are missing compared to what normally works, e.g., in the browser text input area or in gnome-text-editor (Ctrl-Shift-Up/Down was one I directly ran into). I've found https://github.com/gphalkes/tilde to work quite well, it also supports the system clipboard. Nice to see a Rust alternative.

ctrl+shift+up/down - not sure what you mean it to do? In VSCode it adds multiple cursors directly above/below. In other editors I think it moves (shifts) the current line up or down.

Actually not that important, it also does the same as shift-up/down and I think it's more a convenience feature that one can keep ctrl pressed when it was pressed as ctrl-shift-left/right for word selection and one then presses up/down.
Post reply on HN