Skip to content
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

[Bug] Shortcut OSX doesnt work #55

Closed
schroef opened this issue Oct 8, 2018 · 11 comments
Closed

[Bug] Shortcut OSX doesnt work #55

schroef opened this issue Oct 8, 2018 · 11 comments

Comments

@schroef
Copy link

schroef commented Oct 8, 2018

bracket 1.13
osx 10.11.6

I tried the control + alt + / shortcut on ac but nothing happens. It simply adds an forward slash then.

@schroef
Copy link
Author

schroef commented Oct 8, 2018

Sorry had done proper research. It seems it wasnt enabled. But by doing so i see errors about a missing text file

It looks like the lib folder is missing. ill try to download and install it again from this gitHub and do a manual install. Hope this fixes this.

Errors in the dev tool
screen shot 2018-10-07 at 20 24 19

Content bracket display shortcut folder
screen shot 2018-10-07 at 20 26 09

EDIT
seem the version online here also is missing this folder

@schroef
Copy link
Author

schroef commented Oct 8, 2018

When i deleted it and did a reinstall using plugin/addon manager. I get this error

Again i see that missing folder and file. Im not sure where this comes from, because it doesnt seem to be in your code. When i did a search for these files or text in the code, its not there. Do these need to be created by Brackets orso?

screen shot 2018-10-07 at 20 33 17

@schroef
Copy link
Author

schroef commented Oct 8, 2018

IM wild guessing here, in other plugins i see they call or import the module 'mustache'. In this plugin i dont see it get imported i think?

I dont know much about this code or language. I know a bit of Python and some other.

@schroef
Copy link
Author

schroef commented Oct 8, 2018

Okay that was the fix :)

i added this line below CodeMirror import in main.js:33

brk.Mustache = brackets.getModule("thirdparty/mustache/mustache");

Now it works again :)
screen shot 2018-10-07 at 20 43 50

@redmunds
Copy link
Owner

redmunds commented Oct 8, 2018

Thanks. Do you want to submit a pull request?

@redmunds
Copy link
Owner

redmunds commented Oct 8, 2018

This is now fixed. Thanks for filing bugs. Thanks even more for telling me what the fix was :)

@redmunds redmunds closed this as completed Oct 8, 2018
@schroef
Copy link
Author

schroef commented Oct 8, 2018

hahah that was easy fix right ;)

I guess not much people use this or they are Windows users. This bug probably has ben here for a long while.

PS for what can i use the action "Copy to document"?
I went looking for this add because i wanted to add shortcuts to the splitview and vertical/horizontal splitview. It took me quite long to actually figure out that they can easily be added in the settings files. This part isnt really proper documented i must say.

THere is also writing about the function "Copy to document". But what i dont understand is the usage for this, the formatting cant be used in Brackets itself, atleast not in setttings files.

@redmunds
Copy link
Owner

redmunds commented Oct 8, 2018

for what can i use the action "Copy to document"?

I added that to make it easy to create documentation in HTML format with all the info of all of the shortcuts. Try this:

  1. File > New to create a new file
  2. Click "Copy to Current Document"

At that point, you can edit, copy, and paste as needed.

It took me quite long to actually figure out that they can easily be added in the settings files. This part isn't really proper documented i must say.

It's not documented directly, but if you right-click on any row and click "Override Shortcut for Command", it opens the keymap.json file, and even creates an entry with the Command name for you.

@schroef
Copy link
Author

schroef commented Oct 9, 2018

I find that keymap.json file weird. Im not sure what im doing wrong. But it keeps saying its not a proper json file.

Ive once set it but when i add something i keep getting the error. I now erased all data and copy pasted the base from the page and still keeps bugging. I looked at this page

{
    "overrides": {
        "<key>": "<command-id>"
        [, "<key>": "<command-id>"]
    }
}

PS did you change the shortcut for show shortcuts? now its cmd+shift+~ on OSX

@schroef
Copy link
Author

schroef commented Oct 9, 2018

Weird thing is the shortcut doesnt do anything now? Not sure what happened there. I thought that it was change to Shift+cmd+~ but that is Toggle Panels. Though it does show then, ctrl+alt+/ doesnt do anything now.

I do see this in the dev tools. Seems like it still wants to add cmd+shft+/

PS i tried adding =="darwin" instead of mac, but didnt seem to help

screen shot 2018-10-08 at 23 34 27

@schroef
Copy link
Author

schroef commented Oct 9, 2018

Okay this one will work on mac Alt-Cmd-`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants