stevenguh / spacecode Goto Github PK
View Code? Open in Web Editor NEWSpacemacs like action menu in VSCode
Home Page: https://github.com/VSpaceCode/VSpaceCode
License: MIT License
Spacemacs like action menu in VSCode
Home Page: https://github.com/VSpaceCode/VSpaceCode
License: MIT License
Right now the only way to customize the actions is to completely redefine "spacecode.bindings"
in your settings.json
.
There should be a way to add or override single key bindings without deleting all the others.
If I put this in my settings.json
, SPC f f
should be edited, SPC f q
should be added because it doesn't exist yet and all the other key bindings should remain as defined by default.
{
"spacecode.mybindings": [
{
"key": "f",
"name": "File...",
"type": "bindings",
"bindings": [
{
"key": "f",
"name": "New Action Name",
"type": "command",
"command": "action.which.I.prefer.over.default"
},
{
"key": "q",
"name": "New Action Name",
"type": "command",
"command": "my.action.for.this.new.key.binding"
},
]
}
]
}
I followed this instruction from the readme:
To customize the menu, copy the default spacecode.bindings value in package.json in this repo and put the updated spacecode.bindings config in your own setting.json.
When I copy spacecode.bindings I get the following error:
Instead something like this works:
{
"spacecode.bindings":[
{
"key":"f",
"name":"File...",
"type":"bindings",
"bindings":[
{
"key":"f",
"name":"Open file",
"type":"command",
"command":"workbench.action.files.openFileFolder"
},
{
"key":"i",
"name":"Indentation...",
"type":"bindings",
"bindings":[
{
"key":"i",
"name":"Change indentation",
"type":"command",
"command":"changeEditorIndentation"
},
{
"key":"d",
"name":"Detect indentation",
"type":"command",
"command":"editor.action.detectIndentation"
}
]
}
]
}
]
}
example here
Draft:
to test the project:
1. clone and project
2. checkout develop branch
3. open the folder with vscode
4. Press F5 to run a debug vscode with extension in development installed on that instance.
When the migration to VSpaceCode is finished, this repo should be archived and there should be a link to the new repo in the README.
I am opening this to track the issue where space cannot be in vim command.
The solution is use vim's configuration to trigger the spacecode.space
command. However, we need to have a popup to notify user to migrate when they the extension is updated.
This idea is coming from #8. It would be great to have a script in the prepublish step to generate a markdown table from the default bindings in the package.json
to use in README.md
. I am thinking this would generate a separate markdown file at the root directory like KEYBINDINGS.md
then the README.md
can refer to all the default key bindings we have.
I installed all the required extension, I have a settings file like the one from VSpaceCode
I'm happy to see a Spacemacs like keybinding and menu scheme brought to vscode. I have tried it out and it already works really well for what it does. Thank you for writing this!
I see that you've already been speaking with @MarcoIeni in another issue. I didn't see him mention it, but he maintains similar extensions for some other editors (spaceclipse and intellimacs). I think that the keybinding list that he created could be especially useful for a new project like this.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.