-
Notifications
You must be signed in to change notification settings - Fork 29.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[macOS] Add support for the touch bar in the new macbook #14653
Comments
Blocked by electron/electron#7781 |
Apart from the core, I guess also extensions which provide new windows should be able to add their owns if it makes sense. |
I would also like to add and request if we can make this context-aware - e.g., when editing a Markdown document, the Markdown plugin/service should be able to provide useful context-specific shortcuts and features in the TB, or have debugging controls appear when debugging an app. |
Also waiting for this one :) 👍 |
A killer feature would be to have the breakpoint controls appear on the touch bar while debugging at runtime. |
Would be really, really nice to have Intellisense suggestions go there. (They'd be laid out horizontally instead of vertically, but even then it would be pretty cool. And it could provide scrolling to handle overflow) |
It would be nice to be able to adjust the touch bar controls thru the extensions api. |
Hi, Correct me when i'm wrong. but we should wait with building the touchbar feature until electron is ready. here is the issue over at electron, about the new Touchbar feature: electron/electron#7781 |
This would be great, some defaults like "Step Into" and "Step Over" when debugging, go to definition, find all references, comment this line etc.. as someone mentioned above, contextual stuff when in different file types would also be awesome. |
touchbar support would be sooo nice! |
Please bring touch bar support soon |
Any news about this? Update: electron/electron#7781 (comment) It's live on master and will be available in the next release |
Finally :) ! Been using Electron 1.6 with native ES2015 support (without babel finally...) and it's great and now they're adding touch bar API support, they're really working hard on Electron and that's awesome, kudos to the Electron community. |
Correct me if I'm wrong, but the |
@avrame |
@MarshallOfSound But I never enjoyed using babel with Electron.js, and it's great that they fixed this by updating the nodeJs version to v7+. |
@mrmlnc ping :( |
@mrmlnc Electron is now at |
Looks like the electron upgrade is still WIP over here #23800 In meantime I have been looking at how to implement this feature, docs over here https://github.com/electron/electron/blob/master/docs/api/touch-bar.md Was thinking that the buttons that appear need to be: ConfigurableSettings to configure what appears, so things I use most have the button in place. New buttons added by extensionWhen I use the gulp extension I should be able to see gulp on my command strip. Context awareNot necessarily in initial implementation however but the implementation needs to be built so it doesn't require a breaking change to add this. The idea earlier about debug controls sounds pretty sweet. |
it can be a very killer feature |
Looks like were good to start implementing this now as 1.6 is merged 💃 |
Nice! :) |
https://github.com/jonathan-fielding/vscode/tree/feature/touch-bar this is my branch in my fork I am working on, so far ive been playing round with namespacing config |
Just realised this will be blocked by the Type definitions not being updated for Electron 1.6 #24934 |
Exacly. Make it configurable. I would personally find "jump to definition"
and "jump to previous place" most useful.
Kamil Pękala
Dnia 18.09.2017 o godz. 20:25 ruebenacker <notifications@github.com> napisał(a):
… It would be awesome to have the following buttons:
Comment in / out -> comment the marked line/lines in/out
Sync Git
Commit all and Sync Git
Fold / Unfold Brackets
Generally it would be useful to have the configuration panel of the Touch Bar supported to change the layout as needed.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Unfortunately our UI framework currently does not expose API to trigger the touch bar configuration UI. However, as for entries to show in the touch bar, I am thinking of extensions to provide them via the new |
@bpasero Can an extension add these |
@auchenberg I am not sure that is possible, imho you can only declare menu contributions via |
Closing as the majority of the work is done. I suggest people give it a try in our upcoming September release and report back issues. I decided to remove the "+" action for creating a new file so that when you are debugging, all buttons show up properly even when the default of showing "App Controls with Control Strip" is enabled: I also pushed a change to avoid recreating the entire touch bar when actions change, this should reduce flicker a bit, but in some cases it is still needed to recreate a group of items. There maybe some slight icon changes before we release stable. |
@bpasero : in RTM or in insiders channel? |
@bpasero Happy to discuss this in Slack, but it should never be required to completely recreate a group / segmented control. You can assign new "items" arrays and it should update nicely instead of redrawing |
@MarshallOfSound I am using multiple of |
@bpasero An example below that should work, on my windows machine atm so can't test. const control = new TouchBarSegmentedControl({
segments,
});
control.segments.push(newSegmentObjectThing);
control.segments[0].label = 'New Label'
control.segments = control.segments; // This is the magic trick to tell Electron to redraw this touch bar item |
@MarshallOfSound ok I was not aware of that. I can see if this would allow us to reuse segments within a control event. |
Very nice. |
@felipenmoura If you want to use it, you need a mac. If your mac doesn't have a touchbar, I think XCode provides some kind of emulator. As of the september release (1.17?), it's enabled by default on Mac. The only way you can modify the menus is via extension contributions. I'm not sure if/where that's documented, but the september release notes should have enough to get you started. |
hm, I see. |
Hi |
@felipenmoura Nice work. I didn't even know about the cursor above/below thing, great! Personally, I find the CMD+B shortcut quicker and easier for the side menu, as my hands are already on the keyboard. Same goes for CMD+click to go to definition. What I would really like is a button for peek definition and one for find all references. If you see my post above, I made a bar with BetterTouchTool a while ago to do that, but the X on the left moved the escape key out of position, which made it a pain to use. Thanks. |
Interesting @daveshirman , the peek and find references are, indeed, two very important additions! |
Would it be possible for an extension to hide the three standard buttons from VSCode to have more space on the TouchBar for own buttons? |
I'd love to but I really don't have time at the moment out of work, I just
wanted to give my feedback as it's rubbish when you put something out and
you don't get any response.
…On Wed, Nov 1, 2017 at 3:21 AM, Felipe Nascimento de Moura < ***@***.***> wrote:
Interesting @daveshirman <https://github.com/daveshirman> , the peek and
find references are, indeed, two very important additions!
I'm working on a way the user could customize it!
Perhaps we could add those features together and let users decide which
buttons they want!
I already have a branch with the options for that, but the problem is that
the "when" filter in the package is not considering user's settings (or I
couldn't find any documentation on that, at least). Would you have a
suggestion on how to accomplish that?
I also received a PR for a "rename file" button.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#14653 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ANnlXg8J2q_SrOGUzVGHY7MuAkRPS-nFks5sx-PWgaJpZM4KjTg5>
.
|
Cool. |
Hello, Unless I'm overlooking something, there doesn't seem to be a way in 1.18.0 to modify the touch bar to get remove the app controls and leave the control strip with brightness/volume intact. Any ideas on how to achieve this? |
@mokyox You can change that in your OS settings. |
@felipenmoura Thanks, but what I meant was I want to remove the actual touch bar controls and leave just the control strip behind. There doesn't seem to be a way to actually do this without forcing the touch bar to display Fn keys only. |
@mokyox I think you should file this as a separate issue. Otherwise, it would not get implemented as this issue is already closed. |
Hello :),
I think many people are using visual studio code with macbooks, Adding shortcuts and features to the new touch bar in the upcoming macbooks pro can be useful and more productive for future owners :).
The text was updated successfully, but these errors were encountered: