GithubHelp home page GithubHelp logo

stevenguh / spacecode Goto Github PK

View Code? Open in Web Editor NEW
12.0 5.0 1.0 2.35 MB

Spacemacs like action menu in VSCode

Home Page: https://github.com/VSpaceCode/VSpaceCode

License: MIT License

TypeScript 100.00%
vscode vim vscode-extension spacemacs vscode-vim which-key

spacecode's People

Contributors

marcoieni avatar mazurel avatar stevenguh avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

diogodadalt

spacecode's Issues

Incrementally change the actions in the menu

idea

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.

example

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"
        },
        
      ]
    }
  ]
}

README: explain better how to customize key bindings

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:
image

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"
                  }
               ]
            }
         ]
      }
   ]
}

Create contributing guidelines

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.

archive this repo

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.

<space> cannot be used with Vim command

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.

  • Update README
  • Add popup when updating to new version to use different configuration

Create a markdown table from the default key bindings

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.

double space does not work

I try to get double space to execute command "workbench.action.showCommands" like this
image
It do appear in my quickOpenList,but it doesn't work when I press space and space like spacemacs
image

The keybindings are not as comprehensive

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.

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.