News for hackers. Stuff that matters.
Re:Show HN: Emacs Anywhere by JepZ on Sunday March 04, 2018 @07:16AM (#16514442)
Re:Show HN: Emacs Anywhere by curryz on Sunday March 04, 2018 @07:20AM (#16514451)
You’ve got that right! I built this as a knee-jerk reaction to vim-anywhere. XD
Re:Show HN: Emacs Anywhere by josteink on Sunday March 04, 2018 @10:07AM (#16514905)
How is this different from “it’s all text”?
Re:Show HN: Emacs Anywhere by FrenchyJiby on Sunday March 04, 2018 @10:25AM (#16514967)
For one it seems to be system-wide rather than Firefox-specific (too bad It's All text doesn't work after Quantum). Apparently relies on the clipboard instead of filesystem
Re:Show HN: Emacs Anywhere by bb88 on Monday March 05, 2018 @03:19AM (#16519571)
I respect your honesty here. ;)
Re:Show HN: Emacs Anywhere by nabla9 on Sunday March 04, 2018 @09:33AM (#16514820)
"Why do we have to hide from the police, Daddy?"

"Because we use vi, son. They use emacs."

Re:Show HN: Emacs Anywhere by jaequery on Sunday March 04, 2018 @12:56PM (#16515628)
It really doesn't have to be a war anymore. Nowadays, you have both EMACS/VIM hybrids best of both worlds.
Re:Show HN: Emacs Anywhere by easytiger on Tuesday March 06, 2018 @07:32AM (#16528389)
No, modal editing is utterly insane in today's environment.
Re:Show HN: Emacs Anywhere by platz on Sunday March 04, 2018 @02:59PM (#16516325)
Thank God we don't live under a soviet-era communist editor dictatorship
Re:Show HN: Emacs Anywhere by WrtCdEvrydy on Sunday March 04, 2018 @11:03AM (#16515145)
Okay, next weekend...

let's do nano-everywhere!

Re:Show HN: Emacs Anywhere by melling on Sunday March 04, 2018 @11:18AM (#16515209)
Maybe instead someone will reinvent the editor. Voice assistant integration, for example. Perhaps better understand code structure.
Re:Show HN: Emacs Anywhere by zamber on Sunday March 04, 2018 @01:47PM (#16515898)
HEATHEN! The holy, never-ending war must continue.

Seriously, what voice commands would be better than clacking on a keyboard?

For code structure we have AST-fueled refactoring tools, auto linters, auto formatters... the main problem with these is that you're forcing people to use a single IDE/editor with a particular set of plugins with a particular configuration. And usually it's not even VIM or Emacs!

Re:Show HN: Emacs Anywhere by gknoy on Sunday March 04, 2018 @05:07PM (#16517069)
Tavis Rudd uses voice recognition to do his editing (in Emacs, no less):

https://www.youtube.com/watch?v=8SkdfdXWYaI

The key is that he basically made up his own language to handle some things like special characters.

Re:Show HN: Emacs Anywhere by zamber on Sunday March 04, 2018 @06:01PM (#16517341)
Thanks for this. Will keep it in mind when RSI kicks in.

Here's a synopsis of the talk http://ergoemacs.org/emacs/using_voice_to_code.html

Couldn't find the repo for the dragon stuff he promised to publish on his GH profile :/.

Edit: Found this summary he re-tweeted recently https://medium.com/bambuu/state-of-voice-coding-2017-3d2ff41....

Re:Show HN: Emacs Anywhere by melling on Sunday March 04, 2018 @02:43PM (#16516230)
Use your imagination. It’s not really to hard to figure out how to use voice in an editor.

Think higher level than next Word, next word.

Pretend you aren’t hunched over the keyboard with your fingers at the ready.

And I didn’t say replace the keyboard.

Re:Show HN: Emacs Anywhere by zamber on Sunday March 04, 2018 @05:26PM (#16517159)
I did.

You could re-implement the Vim command building language in a natural language. You'll hit walls sooner or later.

Don't get me wrong, it would be awesome for ergonomics and a pretty powerful tool, but for now Google Assistant has issues in recognizing if I want a timer for 13 or 30 minutes. 1/5 of speech recognition searches are gibberish, especially when I use own names.

Correcting a typo takes far less time than backtracking speech - that's one of the main issues I see when people use any speech-to-text converter. People weigh their words carefully or they're in a world of pain trying to backtrack an error.

If we supplement the keyboard then what is faster and easier to do?

"replace all" $potato "with" $banana > hit enter < OR say "enter"

s/potato/banana/g

If you have an actual use case in mind that would dwarf keyboard input then give an example, please.

Re:Show HN: Emacs Anywhere by melling on Sunday March 04, 2018 @06:01PM (#16517342)
Why do you think you need to say “hit enter”? You’re constraining yourself to the current model. You’re free to make the assistant intelligent.

“Create function userName that returns a string”

“Rename current function to lastName”

“Rename variable myVariableName to newVariableName then run app”

Re:Show HN: Emacs Anywhere by btschaegg on Tuesday March 06, 2018 @06:18PM (#16533005)
For some reason, I couldn't help but imagine someone using Parinfer using voice commands and innocent bystanders recoiling in disgust because of the constant "slurp!", "barf!", "slurp!" interjections. xD