Hahah, when you spot your typo and fix it within the editing grace period, but it’s all for naught as @sodapopcan catches you in the act
Ya, sorry, while I often work on my laptop, I’m on my large monitor right now and just had this thread open in my periphery. I mostly understand why it doesn’t, but I feel Discourse should have at least a small grace period between when you hit “<- Reply” and when others can actually see it (as HN does). It’s especially BS when creating a post and you accidentally submit it as then there is a permanent record of your mishap, even if you edit it immediately.
Anyway, I’m getting WAY off topic at this point.
Also, @BartOtten good topic I’m now thinking of how I can improve here, although always thinking about the times I don’t have my mappings handy. While I’m heavy into the mnemonics as a Vim user, there are a few mappings I have that are purely about convenience (I had
z;
in normal mode for :qa<cr>
for the longest time… I’m sorta missing it).
@jswanner’s got me thinking about these three common operators but I can’t override readline so I’m thinking:
abbrev a; <bar>>
abbrev aj ->
abbrev ja <-
I wonder if the Elixir bundles for editors like TextMate have snippets shipped with them? In Rails the Ruby bundle with CTRL
+Shift
and >
gave you erb tags: <%= %>
Any easy route for anyone on macOS, you could use text replacement set to replace something like >>
to |>
Have you heard about dead keys? I have comma as a dead key. You can program it using ukelele for mac. Now everytime i press comma I can program other keys to output something else like curly braces, brackets, pipe etc.
Comes in very handy.
(In my setting pressing a space after comma outputs comma + space)
Nice one. Did not know about ukulele, which website also links to keyman. Found myself a new rabit hole…
I am using Ukelele on macOS to map the pipe Operator to a convenient key.
Do yourself a favor and get an ANSI US layout keyboard. Keychron are great