{"id":18262716,"url":"https://github.com/limetext/commands","last_synced_at":"2025-04-04T20:30:53.510Z","repository":{"id":57494550,"uuid":"56259384","full_name":"limetext/commands","owner":"limetext","description":"LimeText commands","archived":false,"fork":false,"pushed_at":"2020-03-15T18:21:50.000Z","size":124,"stargazers_count":7,"open_issues_count":53,"forks_count":8,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-20T18:08:14.296Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/limetext.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-14T18:05:58.000Z","updated_at":"2020-03-15T18:21:52.000Z","dependencies_parsed_at":"2022-09-02T19:50:57.146Z","dependency_job_id":null,"html_url":"https://github.com/limetext/commands","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/limetext%2Fcommands","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/limetext%2Fcommands/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/limetext%2Fcommands/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/limetext%2Fcommands/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/limetext","download_url":"https://codeload.github.com/limetext/commands/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247246139,"owners_count":20907744,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T11:08:37.963Z","updated_at":"2025-04-04T20:30:48.689Z","avatar_url":"https://github.com/limetext.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# commands\n\n[![Build Status](https://travis-ci.org/limetext/commands.svg?branch=master)](https://travis-ci.org/limetext/commands)\n[![Coverage Status](https://img.shields.io/coveralls/limetext/commands.svg?branch=master)](https://coveralls.io/r/limetext/commands?branch=master)\n[![Go Report Card](https://goreportcard.com/badge/github.com/limetext/commands)](https://goreportcard.com/report/github.com/limetext/commands)\n[![GoDoc](https://godoc.org/github.com/limetext/commands?status.svg)](https://godoc.org/github.com/limetext/commands)\n\nThis package contains commands made accessible to frontends and plugins. They come in three flavours: [`ApplicationCommand`](https://godoc.org/github.com/limetext/backend#ApplicationCommand)s, [`WindowCommand`](https://godoc.org/github.com/limetext/backend#WindowCommand)s, and [`TextCommand`](https://godoc.org/github.com/limetext/backend#TextCommand)s.\n\n# Goals\n\nThe goal for release 1.0 is to implement all of the commands exposed by Sublime Text 3. See the [commands label](https://github.com/limetext/commands/issues?q=is%3Aopen+is%3Aissue+label%3Acommand) for outstanding commands to be implemented.\n\n\n## Brief Overview of Commands\n\nA command is a type implementing one of the command interfaces.\n\n```go\ntype (\n    DoSomething struct {\n        backend.DefaultCommand\n    }\n)\n```\n\nEach command has a `Run` method which is executed when the command is invoked.\n\n```go\nfunc (c *DoSomething) Run(v *backend.View, e *backend.Edit) error {\n    // Do something!\n}\n```\n\nCommands need to be registered with the backend via the `init` function before it can be executed by plugins.\n\n```go\nfunc init() {\n    register([]backend.Command{\n        \u0026DoSomething{},\n    })\n}\n```\n\n\n# Implementing Commands\n\nIf you are interested in implementing a command, see the [Implementing commands wiki page](https://github.com/limetext/lime/wiki/Implementing-commands).\n\n\n# Other References\n\n* Lime's [command interface API documentation](http://godoc.org/github.com/limetext/backend#Command)\n* Sublime Text 3's unofficial (and [open source](https://github.com/guillermooo/sublime-undocs/)!) [command documentation](http://docs.sublimetext.info/en/sublime-text-3/extensibility/commands.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flimetext%2Fcommands","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flimetext%2Fcommands","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flimetext%2Fcommands/lists"}