3 ms·
Good point re: using error messages. If I call a function incorrectly, the call stack will helpfully point out the file and line number of the location the erro
by jazzyjackson 2y ago
Good point re: using error messages. If I call a function incorrectly, the call stack will helpfully point out the file and line number of the location the error was thrown from, just a few keystrokes in vim will get you there.
- troupo 2y ago> the call stack will helpfully point out the file and line number of the location the error was thrown from, just a few keystrokes in vim will get you there. Or Cmd+Click/Ctrl+Click in an IDE
- jazzyjackson 2y agoUhhh that would involve a mouse, gross ; )
- jessekv 2y agoDo you use a keyboard to browse the internet? On unfamiliar codebases a mouse with back and forward buttons can be quite a fast and convenient way to get the "lie of the land". I often do this inside GitHub's browser-based editor.
- worksonmine 2y ago> Do you use a keyboard to browse the internet? Yes, using the vimium extension. My only problem is text inputs like this one, my muscle memory expects vim keys to work and I type a lot of jibberish that I have to clean up. I know there are extensions for that too but I can live with it.
- Izkata 2y agoTridactyl has a native extension that lets you run external programs, such as popping up a gvim window for text inputs.
- troupo 2y ago"Uhhh that would involve a precision action with a tool specifically designed for precision actions" ;)
- jazzyjackson 2y agoI can definitely hit my Return key with more precision than I can drag a cursor over a 40x400px target but go off :P (I use a Superior Technologies trackball because it's the only mouse I could find manufactured in the USA and it's really not very precise, it's kind of a self handicap to nudge me towards keyboard shortcuts, muscle memory gains just have a steeper curve on keyboard than mouse)
- troupo 2y agoYou still need several key strokes to get there ;) So it's not as precise as an actual precision pointing device
- lacksconfidence 2y agoMaybe this is a physical development thing? Because i can't imagine a world in which my mouse is more accurate than my keyboard. The mouse requires two-way responsive action. I have to both move the mouse and observe the movement with my eyes to update the movement as necessary. With the keyboard there is no such coordination, I simply think the thing i want to happen and press the appropriate keys.
- Too 2y agoRemarkable. With an ide you just press the hot key for next error and bam, it takes you to the exact line. (No you don’t need a mouse for this.) In fact, with lsp you wouldn’t even write the error in the first place, saving you a big context switch to the terminal, running the compiler, reading the error, reading the file name, swapping back to edit, focus on the file again.