https://github.com/cknadler/vim-anywhere + https://news.ycombinator.com/item?id=16395379
Nice to see them both still in use :-)
"Because we use vi, son. They use emacs."
let's do nano-everywhere!
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!
The key is that he basically made up his own language to handle some things like special characters.
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 :/.
Found this summary he re-tweeted recently https://medium.com/bambuu/state-of-voice-coding-2017-3d2ff41....
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.
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"
If you have an actual use case in mind that would dwarf keyboard input then give an example, please.
“Create function userName that returns a string”
“Rename current function to lastName”
“Rename variable myVariableName to newVariableName then run app”
It attempts to launch an external program with your $EDITOR (vi or emacs) preferred key bindings.
However it looks like it only works with emacs editing mode (set -o emacs). Is there a way to do this in vim editing mode (set -o vi)?
Also it doesn't appear to work in zsh. Is there a zsh equivalent?
I wouldn't understand anything without the screenshot altho I use Emacs for 11 years. Imagine beginners reading it...
What it does: Use emacs to input text in any program at any time
How it work: A keyboard shortcut of your choosing...
Minor nit, can you fix the grammar here: "inserted into the application your using"
Should be "you're using" as in "you are using".
Thanks for this.
And, of course, the upside is that on any random machine with emacs is 100% compatible.
Oh, and one more tip :-): bind 'vim' to 'emacs -nw -Q' which loads emacs really fast (without requiring the daemon to be running).
The big problem is that all(?) applications use logical instead of physical keys for hotkeys combinations so any custom layout would break everything.
;; Swap C-t and C-x, so it's easier to type on Dvorak layout
;; `keyboard-translate` does not work when attaching an emacsclient to
;; a running emacs in daemon mode, so instead we define the key in the
(define-key key-translation-map [?\C-x] [?\C-t])
(define-key key-translation-map [?\C-t] [?\C-x])
However I use Spacemacs with Vim keybindings :D
I use spacemacs but I don't think this should cause any issues. I'm new to both though.
I even wrote this comment in emacs!!
It looks like this just opens an editor with a shortcut and pastes the text on exit...
don't get me wrong, all that said, I couldn't and wouldn't use emacs if it didn't have a rich vim emulator.
Thanks for this clarification. (Even pasting becomes increasingly impossible. For e.g. Google does not allow me anymore to paste my username at login, and my (work) username is very long... I suppose pasting might offer an easier way scripted attacks. But yeah, most applications still allow it.)
In general there's always a simple way to bypass these websites limitations, like those who try to disable the right click.
Since you talked about your "(work) username" I thought your employer chose your OS/browser for this particular case.
While my employer does not chose my OS/browser I am in the lucky situation that most of us use Linux with their favorite distro.
Could you explain what’s bad about that or why you think classic keyboard interfaces are a fad?
(I’ve been using Vi interfaces in one form or another since 1989).