Are there plans to include support for Apple’s new MacBook Pro with Touch Bar shown below:
Touch bar replaces the function key row with an OLED panel with multi touch support. It is fully customizable. Don’t know, how the API looks like. Basically that might provide shortcuts to frequently used commands/scripts.Or maybe show different tabs or open files for easy access. If you have suggestions, please list them to this thread.
Last 5 used files would be a great feature for me. Then you could switch faster between the files then with Ctrl Tab. Another great feature would be to easily add functions from Command Palette to the Touch bar, making them even faster to access.
Another feature that probably is harder to integrate would be the last 5 copied texts. Kind of an integrated copy board.
Please, please add an API for this! All the stuff packages could do! There should be a way to resolve conflicts though. The same problem with conflicts between different packages exists with the gutter so this would not be something new. In any case, PLEASE give us an API.
I agree that several APIs would be great. But I just wonder in which way these APIs should be like.
According to Apple’s announcement, the Touchbar actually is a screen with an independent CPU and thin WatchOS. Maybe we can customized TouchBar with a set of selected Commands (maybe syntax specific)?
I wonder if this could be implemented using apps like Keyboard Maestro too? Since most (all?) Sublime features can be keyboard bound, so if not Sublime will offer it, maybe keyboard helper apps will?
EDIT: “The API for the Touch Bar does not appear to allow non-front applications to affect the Touch Bar, except that Apple does this themselves in Xcode and Screen Capture and the like. So Apple knows and understands the need, but have not made the facility available for Third Party macro trigger style applications.”
So I guess we’re left to hope that Sublime can integrate it then
I came across this thread, looking exactly for this feature. In my opinion, this should match the power of flexibility of sublime text.
We can imagine a file like sublime-keymap-touchbar, where you can simply add shortcut like the sublime keymap file, but with the possibility to add a label or an icon to display in the touchbar.
Or, for more power, A full plugin with advanced functionalities.
I dont have the 2016 macbook yet, it’s a matter of days, but as soon as I get it, I will look the touchbar API and see what can be done.
It could be good to start thinking what are the bests uses for sublime on the touchbar.
It is a hardware specific feature (and also os-specific) so I doubt it would fit in a cross-platform API like ST’s. You are free to use the ctypes python package to access these OS APIs however.
Personally, I would create a package in a way that allows specifying arbitrary commands and arguments to be run on touch, and optionally a way to modify displayed text (or image?) for each button. Anything more custom should be directly implemented.
Why would Jon implement this for a small group of users? He won’t implement printing in ST which has been requested by a larger group of users, so you guys are beating a dead horse.
With regards to Touch Bar support on macOS, all you get out of the box is buttons for next/prev result (i.e., F4/Shift+F4 equivalents). You can enable the show_navigation_bar preference to turn on a list of recently visited files there, too. It’s off by default because it’s very much just an experiment at this stage: it needs some testing to see if it’s even useful.