GithubHelp home page GithubHelp logo

on2-dev / nasc-vscode-mac-touchbar Goto Github PK

View Code? Open in Web Editor NEW
112.0 112.0 34.0 331 KB

A customization for your the macbook pro touch bar buttons with features for VSCode.

License: MIT License

JavaScript 100.00%
functions macbook macbook-pro shortcuts touchbar touchbar-support vscode vscode-extension

nasc-vscode-mac-touchbar's People

Contributors

dudeofawesome avatar eisenheim94 avatar felipenmoura avatar justinchan23 avatar mattmiller85 avatar nimms avatar nodinosaur avatar purge avatar scorphus avatar zeevl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

nasc-vscode-mac-touchbar's Issues

Custom buttons disappear while typing

Just a few days ago my touch bar always looked like this in VS Code:
Zrzut paska Touch Bar 2020-09-22 o 10 45 24

But now as soon as text editor or any text field is active, my own buttons are replaced with the keyboard:
Zrzut paska Touch Bar 2020-09-22 o 10 45 32

NPM button

This button would show in the touchbar, the list of available commands from the package.json scripts settings (like npm run build).

Buttons disappear in debug mode

Hey @felipenmoura
Awesome work on this!!! 🥳

I work in flutter in hot reload mode. This means I am always in debug mode while in development. I don't see any touch buttons in dubug mode. Is it by design? Can we do something about it.

Thanks

broken with vsCode last update v1.3.1.0

This seems to be overwritten by a new vs code setting.
Please fix this your plugin is sooooo useful

I'm running mac os latest
and vs code Version 1.31.0 (1.31.0)

🐼

Add fold all\unfold all toggle button

Having either 2 buttons for folding all brackets and unfolding all brackets can be very useful.

Optionally, this can be a single button that just toggles the folding of brackets

Extension stopped working, getting text suggestions instead

The extension recently just stopped working, and I'm getting text suggestions instead:

Touch Bar Shot 2019-11-12 at 7 35 37

I'm guessing this started with an upgrade of VScode. Currently running VScode 1.40.0 and Nasc 1.12.0.

Any idea what could be wrong and how to get it working again?

"Go to definition" doesn't work in as many scenarios as the default (F12) go to definition

I've noticed that there are scenarios where F12 will take me to the definition for a variable definition, file, etc. where the touchbar "Go to definition" button does nothing. Is this the intended behavior? Is there a way for me to align the behavior of the touchbar button with that of F12?

My use case is that I have this (awesome!) extension basically just to have quicker access to Go to definition, without holding fn to bring up the F keys and without setting the F keys to always show by default. Ideally, though, it would work in all the scenarios that F12 does!

bug: addCursorAbove working once

When I enable addCursorAbove, it only selects the top row. However, when addCursorBelow is active, it adds all the bottom rows as I press the button. Logically, the top lines should also be added in direct proportion to the click count. I guess it's a minor thing and can be fixed.

Duplicate cmd in the Command Palette

Hi,
1st of all, thx for provide this powerful extension.

in Command Palette, i found that there are some duplicate command in the list, one is the icon, the other is the title. pls refer the screenshot.
Suggest remove the icon in Command Palette and align the title like MS naming conversion.
e.g. Nasc: Outdent Line, Nasc: Indent Line.

截屏2019-10-29下午9 25 06

Rename button doesn't work

Hi !

Currently only tested with JS but the rename button doesn't work. If I recall, there was a time where it only renamed the current occurence (which was also a problem) but now it doesn't seems to even do something at all.

Inconsistent Icons

As I understand it, the icons are created using ASCII characters. However, this causes some of the icons to be bigger and off-center (e.g. selectNext) or some to be colored while others black and white.

doesn't show any button

I'm sorry I don't have any more meaningful thing to say, but it just doesn't work for me. I don't see anything in my touch bar. I've tried various other (less cool) touch bar plugins, and they all show buttons in the touch bar, but this extension does not. I don't see any error, no warning, nothing.

I would be happy to provide any additional info you need.

My VSCode version is 1.18.0

Feature request: Word suggestion

Hi,

I think it would be nice to have a word suggestion in the touch bar. I think it will help non-native speakers with docstrings.

Add more buttons

Once we got support for the user to customize the buttons (still depending on some fixes in the touchbar support for the vsCode), we could have some extra buttons:

  • Rename file (already has an open PR)
  • Duplicate selection/line
  • Find next
  • Select next
  • Toggle "show white spaces"
  • Fold/unfold
  • Toggle block comment
  • Find all references
  • Peek definitions
  • snap tab left (internally to app - not OS)
  • snap tab right (internally to app - not OS)
  • toggleSuggestionDetail (control+spacebar)

Any other suggestion?

Add option to search highlighted syntax in Dash

Dash is great for looking up what you need when you know the syntax keyword but can't remember it's specifics, but it's also great for helping with code review/tutorials/contributing to existing code to be able to search up a syntax term you don't know.

It would be great to have this option built into the vscode touchbar - so I've created a pull request to that end #39 It also includes an update to the readme about how to limit the existing vscode buttons to make more space for Nasc touchbar

Use button order specified in the config

Option to change button order would be useful( simplest solution is to preserve the order in the config)
I'll try to find some time to make a corresponding pull request

Add copy&paste

We cmd+c and cmd+v too often, can you add two buttons to do these?

How to customise the touch bar from input from the user

Hey!

I am new to whole programming world.

I have installed the extension properly and it is working fine. I am now trying to customise the bar with my own preferences i wanted to show in the bar. But i am not sure what to do or where to go. How will I make a command line to become true or false. I am not sure where to edit so i can make the changes for my self.

Please advise .??

Missing ``Format Document'' button

Hello,

I recently switched to a new MacBook with Touch Bar of which I would like to make the most use.

It's quite helpful in VS Code to Format Document. Nevertheless, it's a bit inconvenient for ⌥Opt + ⇧Shift + F is hard for me to press.

In the README of the extension, it seems that it support that feature by setting nasc-touchbar.formatDocument. However, I didn't see this setting nor did manually set nasc-touchbar.formatDocument to true is settings.json work. Instead, it showed a warning that nasc-touchbar.formatDocument is a Unknown Configuration Setting.

Could you please check and fix it?

Thanks.

Show last output from terminal

The idea is to show the last line outputed in the terminal for a second.
It is specially useful when you have a watch task running and don't want to keep the terminal visible all the time.

Debugger support

The actual thing that really really really such with respect to touchbar is that debugger commands actually always reside on the F-keys. Particularly if you cannot change the keymap.

Adding an icon set which - ideally - is automatically activated once activating the debugger was brilliant!

GoToDefinition opens new editor group

Even when navigating within a file, GoToDefinition opens a new editor group

My regular keybinding for "editor.action.goToDeclaration" or using >go to definition from the command pallet does not cause the behavior.

Add message when there are too many buttons enabled

When there are too many buttons enabled, the whole group will "fall" to the next line, breaking the layout and (usually) end up disappearing.
So, we could add a message informing the user about that, when that's the case.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.