A useful Caps Lock key
brettterpstra.com
brettterpstra.com
http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=...
Why wouldn't it? They didn't change the entire input system in Mavericks, did they?
That's one big strength of LaTeX: everybody (in certain professions) knows it, so it is easy to collaborate on LaTeX typeset documents.
No it isn't. Perhaps by far the best and most practical way, but not the only way ever to type math notation.
I'd be finishing typing a small monograph by then. LaTeX is far from perfect, but there isn't a better solution yet.
My biggest issue on switching from Windows to Mac was losing all those keyboard shortcuts. On Windows I could do a whole lot more without ever touching the mouse.
I know you can remap your keys etc. but then you usually end up acting all awkward anytime you have to use someone else's computer. So I want the defaults to be good instead and I think Windows got theirs better than Mac.
Don't hate on me for this. I know both operating systems have their pros and cons.
While I do agree Windows has a better keyboard story, most of what you describe are just differences, not worse.
Minimizing is easy after Windows 7 - Windows + Down (Using the windows plus the arrow keys are stupidly useful now, I would love for Mac to have something equivalent.
I personally find Command+C to be very uncomfortable when compared to Ctrl + C - having to curl my thumb under my hand to hit Command is annoying compared to hitting Ctrl with my pinkie. Command + Q also drives me nuts, because it's so easy to hit accidentally when going for the W or tab keys.
Close: alt-space, c
Minimise: alt-space, n
Maximise: alt-space, x
etc.
Works in every version of windows since 95ish, as well as every popular Linux DE I've ever tried (inc. gnome, xfce, kde, cinnamon).
This is a per app thing. Many people (myself included!) want some apps down in the system tray rather than in the task bar. A common example is IM and Email apps.
This is more application developers responding to user demands than anything else. 99% of apps that do this have a toggle switch somewhere to turn this behavior off.
I moved from a windows to mac a few years back, adopted alot of the keyboard shortcuts and recently a few months ago back to windows primarily. I found that on a mac the same shortcuts I use in the terminal (readline bindings), I can use most everywhere (ctrl-a for line start/ ctrl-w to kill last word etc...). For the most part Vimium takes care of the browser.
I have often found the windows shortcuts to be hidden an obscure. Alt+F4 is the defacto kill app on windows but trying to press it is inconvenient especially while Alt+tabbing through windows.
I agree command and control can be confusing but they give you more range in keyboard shortcuts as a result. The windows 8 search (although an improvement over 7) is also medicore compared to OSX spotlight making it much easier to CMD+Tab and navigate to different apps.
The least keyboard friendly part is certainly the windows cmd prompt where pasting is ALT+SPACE+E+P ... as opposed to CMD+V on OSX... not mention the lack of navigational shortcuts in the cmd prompt (kill back a word, kill rest of line etc...)
The most frustrating part for me is windows shortcuts not being consistent throughout apps. In most of the windows CTRL+BACKSPACE will kill the last word but not in notepad? or most winform applications... Ctrl-F is find in most apps but "forward email" in outlook?
I guess its really a matter of personal preference, but I think as far as keyboard shortcuts go, both OS's have plenty.
It's an absolute travesty, nothing works in the command prompt. None of the normal windows text functions works (ctrl-c, ctrl-x, ctrl-v, ctrl-z, ctrl-shift-left/right to copy, mouse copy or selection commands). Copy and Paste especially is an absolute travesty (although it's muscle memory to me these days) and I honestly don't know why they haven't fixed it yet.
That and not being able to resize the window too. Nothing more frustrating than running a long running command and then the output wraps so it's unreadable, and you can't resize the screen. And the mouse screen resize simply doesn't work, you have to go through the whole rigmarole with the buffer size.
It's simply a complete pile of shit. That they consistently bring it out is bizarre. They didn't even bother to fix it for powershell, which essentially just makes powershell a vast pile of crap as an exploration tool.
As you can tell, the whole situation frustrates me a lot, it's a tool I use daily and that they leave it in such an abysmal state is frustrating.
So don't judge windows shortcuts by it's console, for some reason they stubbornly refuse to upgrade it to behave like the sane text editor it should be.
Nobody uses the default terminal (cmd.exe and systems built on top of it). There's alternatives, though, and at least one is pre-installed. Do you judge Linux's command-line capabilities by the usability of xterm?
One of the disadvantages of relying on HN for tech news, few MS stories apart from the occasional "new VS released"/"C# is awesome but lets rag on it anyway"/"wow, F# is great (no-one uses it)" stories.
I seem to remember when powershell first came out the only way to manage the next generation exchange was through the CLI? Quite a few tools lost their GUIs for a little bit? 2008? Am I wrong? Are the GUIs back now? I lost contact with my sysadmin friend and have mainly been working with small companies since that tend to outsource everything to google apps so am completely out of touch on Windows sysadmin.
Office 365, however, requires a lot of Powershell administration, as it doesn't support the GUI management panel, and the web admin panel doesn't expose much functionality.
For windows terminals, I'm intending to look into http://bliker.github.io/cmder/.
Mac might have a better tought out keyboard [1] with @ on a key of its own and \|/ all available on a single key just using modifiers (isn't mentioned anywhere in the manual or help system and not printed in light blue on the keys).
I think the biggest problem everywhere might be that there is no scoping. E.g. if ctrl + something would never affect anything outside of the currently focused window then any application could happily use any and all ctrl-shortcuts for its own purposes. In the same way Super could be defined to only be available for DE-level shortcuts (e.g. cut, copy, paste, switch windows etc).
[1] Also note that apple laptops like ibm/lenovo laptops have fn|ctrl instead of ctrl|fn. Unlike lenovo though it c a n n o t be remapped. (At least it was not possible last time I tried back in 2011.)
Also plugging in an external, standard (non-Mac) UK keyboard leaves you with weird mappings all over the place, and Home and End don't do what they do on every other OS, but appear instead to be largely useless.
I appreciate Mac OS is it's own thing, but it does make switching that much harder and more frustrating.
Not having an option for it at this point in time seems like little more than bloody mindedness. And regardless of any of this, it makes it harder to switch comfortably to Mac OS than pretty much any other OS, and I use a lot of different OS's to get my job done.
That particular shortcut is not in use 99% of the time in the modern era. Arguing that the MAC UI is somehow centred around console applications seems a little churlish. Plus it's far easier to context switch on the single application level (am I in a terminal? Ctrl-C isn't copy) than it is on the platform level (which OS is this application, which looks identical on every platform, currently running on? Oh wait, is this one in a VM?).
Regardless of who may have been 'right' 20 years ago, Mac OS sticks out and makes life difficult now. It's also non-optimal in terms of either requiring a weirdly cramped hand position or two hands, but that's secondary.
* OS X: caps lock -> command
* iTerm: left command (the rebound capslock) -> control
This means in iTerm I need to use the right command key for command shortcuts, but it gives me a convenient control for terminal use. The end result is the same thing as binding caps lock to control on a Linux machine.but this reminds me that some years ago I had it mapped so that if I hit SHIFT-CAPSLOCK (which is a rather unusual thing to do, think about it), it would type... a tilde. I have no idea why I thought I wanted that.
languages, like ruby, haskell, and go, let you use unicode characaters in the language. You can map those characters to key combinations with the compose key.
It comes with a giant list of key combos for accented characters too. So it's worth enabling, then defining your own combos for symbols you'd like to add to your vernacular.
Yes it is all very nice that you can do this, but if you publish some code which some poor shmuck wants to modify on his non-uber-unicoded-dev-setup you just made his life a lot worse.
it 'is the season to be jolly' do
expect(☃ + ☀).to eq(♨)
end
;)He posts about it here: http://forum.colemak.com/viewtopic.php?pid=8851#p8851
I use StickyKeys which lets me hit Shift and then a letter, which I think is even faster since you don't have to "un-shift" like you would with CapsLock.
http://upload.wikimedia.org/wikipedia/commons/4/47/Space-cad...
Emacs seems to think so:
ELISP> (kbd "S-s-C-M-x")
[176160792]
ELISP> (kbd "s-C-M-x")
[142606360]
ELISP> (kbd "H-x")
[16777336]http://stevelosh.com/blog/2012/10/a-modern-space-cadet/#hype...
$ setxkboption -option -option 'ctrl:nocaps'
$ xcape
https://github.com/alols/xcapeWhat is good for?
- Happy with vim
- Happy with emacs like - readline - keybinding. C-a, C-e, C-u, C-k, C-d, C-h, C-w, C-p, C-n, C-y ...
- Ctrl key is most used in any gui application.
You can abandon both bottomleft Ctrl and topleft Esc.(I have the older "international" version with a number of blank keys. I remapped the left space bar to command and the lower left dead key to hyper. Tapping either shift of course generates a paren.)
Was built by a co-worker of mine (ontop of slate). Pretty great set of defaults.
I use it combined with a hyper key mapping (similar to OP) and enjoy it very much.
my config file: https://github.com/n0nick/dotfiles/blob/master/slate/slate.j...
http://www.redgrittybrick.org/terminals/keyboards.html
I guess without another key to the left a lot of people remap caps-lock to ctrl. I never got used to that for some reason. In general terms I tend to avoid remapping in order to maintain a consistent UI. the only exception to this that makes sense to me is that all of my Macs have always had their keyboards remapped to match a PC. As closely as reasonable and possible. For example, ctrl-c and ctrl-v do exactly the same thing whether I am running a Windows, Linux (GUI) or MacOS machine.
It worked surprisingly well for coding.
If you look carefully, you can see the keywords printed on the front of the keys.
http://ewyse.files.wordpress.com/2011/03/acornelectron_top.j...
[1] for example: http://www.antonis.de/qbebooks/gwbasman/print.html
A side effect of this was feeling completely lost when using Windows in Boot Camp. I found that there's a great piece of software on Windows called "AutoHotKey" that lets me do the same hjkl navigation.
I'm using the key physically at the left of the space bar (I don't like talking about the 'name' of the key because it's very keyboard-dependent) as the modifier which allows me to move the cursor. And I move the cursor using modifier+ijkl (for ijkl reproduces the inverted T arrow cluster, not unlike how gamers like to use WASD or ESDF). I do hit the modifier using my left thumb, which is a finger much stronger than the pinky (and, arguably, such a setup is less RSI inducing).
Regarding covering the arrow keys and numpad with a mouse platform: many people opt for for a "TKL" (no numpad) or even 60% keyboard (no numpad, no arrow cluster) and typically those 60% keyboards have the benefit of coming with quality switches (also arguably less RSI inducing).
If you want to see what others are doing, two great sites are geekhack.org and deskthority.net.
FWIW I use a 60% keyboard which has CTRL at the correct place (i.e. where CAPS-LOCK is on keyboards which have a caps-lock): an HHKB Pro 2 (using the amazing Topre switches)... Which doesn't even have a CAPS-LOCK key.
Note that lately there seem to be a regain in interest in alternate setups and alternate mappings: for example the "SpaceFN" layout uses the space bar as an additional modifier (when it is held down) and ijkl to move the cursor around (once again: ijkl and not vim's hjkl and a strong finger, the thumb, to press the modifier).
Regarding remapping and "feeling completely lost" on other OSes: if you want to not have to remap your keyboard on Windows / OS X / Linux etc. you may want to buy a keyboard which has a programmable controller: your setup then works the way you want on any computer.
I am kind of curious about Topre switches, I haven't tried them yet. Only various Cherry switches.
I think the pinky RSI issue isn't so bad for me because most of the time I'm in a text editor with vi keybindings, so I wouldn't be using the arrow keys anyway. It's just nice in other apps to have that ability. In the situations where I do use my pinky, it's typically when I'm not typing very much, so I actually just move my left hand so my pinky rests over the Caps Lock key and doesn't need to move laterally. It's some movement, but still less than reaching over to the arrow keys.
(I use KeyRemap4MacBook for a couple things, including mapping Caps Lock to pressing both shift keys simultaneously, so I still have it if I need it.)
inoremap jj <Esc>
Best .vimrc setting ever.The jj and jk hacks always seemed ridiculous, but maybe I'll give them a try. I think I would prefer jk for speed and fatigue reduction, or maybe even something on the left home row since I'm left-handed.
I was a little skeptical about it at first as it seemed like a weird hack, but it's actually quite practical. The fact that you don't have to leave the home row to swap between modes is a huge efficiency boost.
I must admit, on my computer I'm super productive. My left hand isn't moving at all and my left's pinkie feels relieved because it doesn't have to bend to Control key. On other computers I'm totally screwed. As OP mentioned before, I have ruined my muscle memory.
A somewhat common way of getting case sensitivity without (CONS (CAR x) (CDR y)) is to change the reader to be case-inverting (which then requires you to type in all standard-library symbols as lowercase.
For example, gUaw changes the current word to upper case. guu changes the whole current line to lower case.
In visual mode, you can use just u and U.
Bonus useless tip: g? encodes and decodes rot13.
ANYWHERE FOR LUNCH IS FINE LET ME KNOW WHEN YOU WANT TO LEAVE
Here is my slate configuration for anyone interested: https://gist.github.com/k0nserv/8151008
I've thought about mapping it to alt+tab since I use VNC quite a bit.
Aside from browser and maybe calculator. What else would be good to hot key like the op author describes? Thanks!
I use mine for a drop down terminal (Tilda, or Yakuake before).
used to be the only place where i could replace caps-esc and use altGr for accents.
now windows with autokey(?) allows me to use caps as esc if pressed once, or ctrl modifier if pressed with another key.
i cant find a way to do that in linux now.