0.0.1 • Published 4 years ago

coc-f5 v0.0.1

Weekly downloads
11
License
MIT
Repository
-
Last release
4 years ago

coc-F5

bind F5 with different filetype and list the preset commands to run.

Introduction

this plugin will let F5 to exhale a list with certain commands to execute.

  1. firstly, the plugin will detect the .cocF5.json in root directory and load it.
  2. if there is not file satisfying step 1, the plugin will detect configuration of this filetype in coc configuration.
  3. if there is not configuration record about this filetype, the plugin will use the default configuration of this filetype.
  4. if there is not default configuration about this filetype, you will obtain an empty list.

and i desire you to make a branch and pr the missing filetype configuration, or just show your configuration about the missing filetype in issues.

Install

:CocInstall coc-F5

Keymaps

this should be set on you own.

nmap <silent> <F5> :CocList F5<CR>

Lists

:CocList F5

to create or update the configuration. :CocCommand coc_F5.configurate

Configurations

file: .cocF5.json

"load": will cobine with the commands starting with ! and run when when these commands are executed.

{
    "load": "export $GOPATH=/",
    "filetype": [
        "go":[
            "test": {
                 "description": "test the file",
                 "command": "!go test"
            },
             "build": {
                 "description": "build the file",
                 "command": "!go build"
             },
             "run": {
                 "description": "run the file",
                 "command": "!go build"
             }
        ]
    ]
}

License

MIT

Issue

not write, just conquer the name.


This extension is created by create-coc-extension

0.0.1

4 years ago