How does one break a mouse dependency in a practical way?
For further actions, you may consider blocking this person and/or reporting abuse
How does one break a mouse dependency in a practical way?
For further actions, you may consider blocking this person and/or reporting abuse
Harutyun Mardirossian -
ispmanager.com -
CodeWithCaen -
NateDhaliwal -
Top comments (33)
Learn vim by setting your default terminal editor as vim and download a vim keymapping for your favorite IDE. You can even further the experience by downloading vimium for Firefox or Chrome. It will get you far in most systems.
If vim isn't your thing, learn the shortcuts of your favorite IDE and of your OS.
If like me you typed for the last 20 years with weird bad habits, now is a good time to learn touch typing. It makes typing easier and you'll learn your shortcuts faster.
It is a habit thing, first week feels clunky but surprisingly you muscle memory builds up rapidly.
Definitely agree with turning on Vim emulation in your preferred editor. It can feel immobilizing at first, but it pays off quickly.
I mean it's the best of both worlds: You get all the awesome features of a modern IDE while using a powerful text input tool
The scroll is so smooth and satisfying I can't live without it.
First decide why you want to break your dependence on the mouse. Different goals will have different approaches.
Physical Concerns: Many people suffer from wrist/arm/shoulder/back issues due to using the mouse. I'm in this camp. I now use a left and right mouse to reduce one-sided stress. I try to only play games that use a game controller. I have a vertical mouse. I do stretches and exercises. I tried a controller->mouse pointer driver once, as well as keyboard driven pointer -- both difficult, but an option if necessary.
Speed: A lot of things are faster if done on the keyboard. The first of these are basic computer operations. Learn to do as much as possible in the console -- learning Bash helps. This also gives more flexibility when managing files. Learn shortcuts in apps. Learn about global shortcuts in your OS. Even before shortcuts, learn basic app operation, like menus, via the keyboard. And of course learn touch typing if you already haven't -- I consider this a prerequisite to be a programmer though, even if you're the mouse using type.
Both of these will take practice, but neither of them require a discrete switch -- they can be improved over time. Though it will take a conscious effort to do it, forcing yourself a bit in the beginning.
The most drastic option I can think of is to just unplug your mouse and put it away. That might not be super realistic though since you'll probably come across a website or software that just wasn't designed for use without a mouse. I did this when I first got a drawing tablet. Helps you get used to visualizing the area of your screen as the little rectangle sitting on your desk.
The most likely step would be to either print off or download all the keyboard shortcuts for whatever software you're using. Even Reddit and Twitter have keyboard shortcuts for navigating through posts, upvoting/liking, etc.
Knowing keyboard shortcuts keeps your hands on the keyboard which means less time moving back and forth and more time just working.
I'd say, 3 things:
TAB
keyMy best advice is don’t learn everything at once. Identify the areas you use the mouse the most and learn those keyboard shortcuts first. Maybe it’s something as simple as saving OR maybe it’s text selection. Once you learn those shortcuts, find another one. Over time you can slowly build up a knowledge base that will help take you away from the mouse.
I still use the mouse more than I’d probably like, but I’ve started this approach and am seeing great success!
I used to work in marketing and was the office MS Office expert, especially in Excel. Learning keyboard shortcuts saved me time and let me concentrate on the task rather than the process. But it takes time to really get to the point that the percentage of mouse time is notably smaller. Start out learning just a few at a time. Don't try to learn them all at once. Initially, concentrate on those 1) in menus since they will be marked what they are in the menu, and 2) you find yourself using the most. Easier to remember them when used as you work rather than trying to just memorize. The more you learn, the easier it gets to learn new ones. One of the most important KB shortcuts for ANYONE to learn are the app switchers (Mac: [Command] + [tab]; windows: [control] + [tab]). They both work exactly the same (well, except in the Mac OS you can click on the icons in the app switcher rather than having to tab, tab, tab, tab....). Next learn the selection/navigation modifiers ([shift], [option/alt], and Mac: [Command] & Windows: [control]). One thing I like better in Windows than the Mac is the use of [home] and [end] in the navigation cluster. In the Mac OS to do the same things you have to [Command] + [left] and [Command] + [right]. So to select from insertion to end of line in Windows is [shift] + [end], but the Mac OS makes you [Command] + [shift] + [right]. Minor but annoying when you switch between OSs often.
I apologize up front for the length of this, but here goes .... If not a Mac user, skip the rest of this ... novel.
The rest of the advice applies to the Mac OS. While I dual boot my Mac (I use W7 because it was the Windows OS closest to the Mac OS and I used it for over twelve years at work), I spend nearly all my time in the Mac OS these days.
Still with me? Good. Go to the keyboard preferences and turn on "Show Keyboard viewer in menu bar" to make it easy to open the KB prefs (albeit with the mouse). Then go to the Shortcuts tab. Go through and remove every default shortcut you don't use, but especially all those you likely won't ever use. You really will not need the vast majority of the items listed, and the removed keystrokes become available for the next step: making your own. Just keep in mind not all shortcuts are in that list so you can still run into conflicts.
Best way to learn a shortcut is to make it easy to use and make it make sense. There are a lot of tutorials online to walk you through the process of creating KB shortcuts. You add new shortcuts to Services and/or App Shortcuts, but you can modify the shortcut for anything in the list regardless of the section it's in. Some app-specific menu items without their own KB shortcuts you might find you use frequently can have a KB shortcut added in the App Shortcuts. For example, I use Notes ... a lot. I added two shortcuts to toggle the Folders sidebar (F19 for view and hide). I added shortcuts for bulleted lists ([Command] + 8), dashed lists ([Command] + [dash]), numbered lists ([Command] + 0), strikethrough ([Command] + [shift] + [dash]), and monospaced style ([Command] + [equal]) for code. Combined with the "shipped" or "out of the box" shortcuts for Title, Headline, and body I rarely need to click (menus or to make a selection) to modify text.
Extensively customizing the shortcuts only really makes sense if you spend all (or nearly all) of your time on one machine. If you use more than one machine and you can't customize the shortcuts because other people use them, too, just stick with the stock shortcuts. A Time Machine backup will put all your settings on a new machine, whether to duplicate or move on from an old machine.
Someone mentioned window management. For all my windows, not just Terminal, I use four apps but you can likely get away with just one of them. I use Magnet, Moom, Breeze, and Divvy. Magnet because how easy the initial setup is, Moom because it can remember and "play back" multiple app/window locations/sizes, Breeze for something called Saved States (I use for one window at a time that might not conform to the "standardized" sizes in Magnet), and Divvy for ad hoc window sizing and placement (tho Saved States works for odd sizes that have to be repeated). Most people can get away with just Moom. While not as easy to set up basic window placements and sizes as Magnet, Moom can be configured to do the same things: full screen (closer to maximize in Windows than to Apple's less-than-ideal, full-screen takeover), half screen, quarter screen, and vertical columns of one-third and two-thirds. I also created sixths (two rows of three) in Breeze.
I configured the window-management KB shortcuts to work logically off the keypad. [Command] + 1, 3, 7, 9 put a window in one of the corners. [Command] + 4 or 6 are left or right. [Command] + 8 or 2 are top or bottom halves. [Command] 5 is "maximize" (great for IDEs). [Command] + [equal], [divide], and multiply are three columns of thirds. Add [shift] to [Command} + [equal] and [multiply ] to get left and right two-thirds. [Command] + [pgup] and [pgdn] move the windows between screens (tho [Command] + 4 and 6 will do this too). [Command] + [shift] + 7, 8, and 9 are one-sixths across the top row. [Command] + [shift] + 1, 2, and 3 the bottom row. While running over to the keypad doesn't seem much better than the mouse, it still avoids having to grab a window, dragging it around, then grabbing a side or corner to resize; not to mention how much more accurate and neat the arrangement is versus manual arrangements.
Once I have a working configuration based on the project, I save all their positions with Moom and create an AppleScript to open all the Apps from the Services menu item from any app. That allows me to open, say, XAMPP-VM, Mail, Messages, FaceTime/Skype (or similar), Slack, VS Code (or similar), Firefox, Opera, Notes, and a Finder window (open to the XAMPP-VM https directory). The script pauses to ask if the lampp is running before it opens anything else because Firefox and/or Finder often open files on launch that don't exist until the VM "drive" is running. The slowest part is starting the XAMPP-VM (haven't taken the time to automate those clicks... yet). Then, I select the appropriate saved configuration from the Moom status icon to move them all where I need them. Almost regardless of the number of apps/windows required for a project, I can go from landing on my desktop after signing in to working in just over two minutes. Plus I don't slow my computer's startup sequence with numerous, possibly unnecessary, applications launching as I get to my desktop.
Finally, sometimes the mouse is best, but there are things you can do to make mousing more efficient. I'll spare you that dissertation (unless someone posts they want me to). Let's just say, the Dock was, but is no longer, a part of it.
Whew, SSL! I hope at least some of you made it this far ... and actually got something of value.
Switch to using the mouse on the other side.
I recently started having issues with some of my fingers on my right hand. Probably CTS related or so. Anyway, because of that I started using the mouse with my left hand. It turned out that it's got rather cumbersome to use most keyboard combinations with my right hand, so this kind of forced me to switch to using just the keyboard more often than before.
Crtl + shift + p
Opens up this command prompt type thing in VS Code. You can search files, run the program, debug, open files, convert spaces to tabs.
If it's something you can do in VS Code, you can do it within this tiny but awsome window!
Like Alfred, but specifically for VS Code!
If you have a Mac:
it's shift + command p. Taken from here code.visualstudio.com/shortcuts/ke...
invest in a good mechanical keyboard. you'll enjoy the sound and feel of your typing so much that you'll naturally use your keyboard more.
bonus: mechanical keyboards can be customizable
I'm a C guy using notepad++. I still use my mouse when "necessary". Sometimes it makes sense to just use the mouse. but trust me, using the keyboard is fast and enjoyable. Try to use your command prompt to do simple tasks like starting your code editor. That should get you started.