108 karma · joined December 3, 2013
As for myself, I don’t use Spaces at all.
I have a keyboard shortcut for every application I use daily. CMD+CTRL plus a letter, M for Mail, T for terminal, B for browser… And so on.
Some keys are “overloaded” via Keyboard Maestro, like editor “E”: If MacVim is open, use it, otherwise open TextMate (Not using both much these days since switching to VSCode, which inherited “V” after I ditched Voodoopad :))
To make this work ergonomically, I have to be able to press CMD+CTRL with either the left or the right hand. So the first thing I do with new Macs, is remapping the right Option/Alt Key to Ctrl via Karabiner.
Using this system for the past 15 years, my worst fear is that one day Apple will close down its system so much, that this simple remap will no longer work - they are already on the hunt for kernel extensions…
This thread inspires me to pull in some jQuery and change the project name to Graveyard.
Did somewhat the same kind of research for our projects, but unfortunately didn't find anything decent that could really compete with ActiveAdmin/Rails Admin/Trestle in terms of features and maintenance…
Additionally, there is a case where if you don't select the last line until the end, you end up in a state where the last cursor is already at the beginning. If you press "Home" now, you end up having that last cursor at the beginning of the line - and the other ones at the indentation level (see https://github.com/Microsoft/vscode/issues/14919#issuecommen...)
(Disclaimer: Author of the mentioned plugin, so I am heavily biased against my own workflow and saving-keypresses-obsession :P)
It's not 100% done yet, support for other languages is still missing. But it works.
[1]: https://marketplace.visualstudio.com/items?itemName=kaiwood....
And yes, you may think: "Easy, if a GTK app runs on Linux its native, if it runs on another platform, it's not". Does that mean JavaScript apps for Gnome[1] can be called native, because they have officially blessed bindings to the underlying framework/platform and are fully integrated with GTK?
If not, does that mean as soon as you use any kind of binding/bridging technology "nativeness" is ruled out? Think of C++ apps for Gnome, they use bindings…
If yes, we are only left with defining what the "official" way for doing GUI's on a given platform is. Whatever the vendor gives us and preinstalls on its OS? Ok, no Electron, it uses the Chrome rendering engine, that is definitely third party and NOT native!
But… What if I open a WebKit WebView from Objective-C[2] to render my HTML from there and write my logic making use of JavaScriptCore[3] on macOS? Are we native yet? :)
[1]: https://developer.gnome.org/gnome-devel-demos/stable/beginne...
[2]: https://developer.apple.com/library/content/documentation/Co...
You get most of the features from a heavyweight IDE, but they managed to get the architecture incredibly lightweight so you can use it as a "daily driver" editor as well.
It is snappy enough to quickly edit some configuration or Markdown files (with live preview and clickable links), it has text based configuration files, its easy to write plugins with a couple of lines of code – and all sorts of other things that previously could only be found on the "editor-side" of the spectrum (export VISUAL="code -w", anyone?).
Unique selling points are quite hard to find, most things where invented somewhere else. Its more the combination of things and walking the thin line between the text editor and IDE worlds.
No. Pretty much the same as Notepad++.
Thumbs up for this, Daniel. Thanks.
I use https://marketplace.visualstudio.com/items?itemName=formulah... and bound it to exactly this key.
- editor.action.commentLine toggles comments
- editor.action.addCommentLine & editor.action.removeCommentLine
- editor.action.blockComment for block comments
To "get out" of the terminal, cmd+1 sets focus on the editor again (to be precise: focus on the first editor group if there is a split view).
For integration with Rails, I found https://github.com/reactjs/react-rails to be quite useful. It integrates the Babel transformer for JSX into the asset pipeline and brings a couple of helper functions, so no additional setup needed.
You start writing your components, "mount" them via the helpers in standard .erb templates (or even without the template directly from a controller action), done.
If a command has a keyboard shortcut (toggle terminal has one), it's in that list. It even shows your custom shortcuts.
[1]https://code.visualstudio.com/blogs/2016/08/19/goodbyeuservo...
There are multiple extensions that run code without any setup for almost any language. I use https://marketplace.visualstudio.com/items?itemName=formulah...