Add Touch-bar support for Atom.
The touch-bar is an interesting interface in the MacBook, though sometimes feels
a bit gimmicky. Why would someone use it since keyboard shortcuts exist? For
simple shortcuts like ctrl-c
doesn't make sense, people usually know those
universally shortcuts. But have you looked at atom's shortcuts list? Every
package can register new shortcuts. Just reading the list takes time, more so to
memorize all of them.
There are some applications that use the touch-bar brilliantly, making it actually something useful. Those interfaces have some "awareness" about what's being used by the user. This package attempts to use the active Pane as a reference to show different things that might be useful at that moment.
This of course, is an iterative learning & development. This first release might feel a bit gimmicky, because maybe the touch-bar is just that, just a gimmick. But maybe it turns to be something useful, that I'll leave for you to decide.
When active pane is the text editor.
Buttons:
tree-view
pane.git
pane.command-palette
.When active pane is the tree-view
Buttons:
tree-view
pane.git
pane.command-palette
.When active pane is the git "editor".
Buttons:
tree-view
pane.github
pane.git
pane.command-palette
.When settings page is open.
Buttons:
When touchbar-plus
is not sure which pane or page is displayed.
Buttons:
tree-view
pane.git
pane.command-palette
.In this first release, is not clear how to use the touch-bar. Feel free to propose ideas as issues. Interesting ideas and use-cases may be around the corner!
I know for sure some kind of configuration is gonna be needed. People will want to add/change/remove buttons and move them to their needs. This feature is a big task and right now I don't have the time to do it. Plus I want to release this package before that happens.
First install dependencies & run initial build and compilation.
npm inpm run build# Now we need to build the octicons.# Please add the dependencies instructed here.# https://github.com/Automattic/node-canvas#compilingnpm run build:octicons# Make sure apm is installedhttps://flight-manual.atom.io/getting-started/sections/installing-atom/apm rebuild
Then for regular development
DEBUG=1 npm run build:watch
And open Atom in development mode
atom --dev .
Then, to check if the changes are working, just refresh the atom window: "Command Pallette" -> "Window: Reload".
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.