{"id":22258085,"url":"https://github.com/coot/crdispatcher","last_synced_at":"2026-03-19T22:13:57.931Z","repository":{"id":13833695,"uuid":"16530521","full_name":"coot/CRDispatcher","owner":"coot","description":"A utility Vim plugin used by some of my Vim plugins.","archived":false,"fork":false,"pushed_at":"2020-09-24T20:33:30.000Z","size":35,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-30T12:13:10.774Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Vim script","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/coot.png","metadata":{"files":{"readme":"README.markdown","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":"2014-02-05T00:23:49.000Z","updated_at":"2022-12-08T02:25:01.000Z","dependencies_parsed_at":"2022-09-06T14:11:16.086Z","dependency_job_id":null,"html_url":"https://github.com/coot/CRDispatcher","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/coot%2FCRDispatcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coot%2FCRDispatcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coot%2FCRDispatcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coot%2FCRDispatcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coot","download_url":"https://codeload.github.com/coot/CRDispatcher/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245467616,"owners_count":20620216,"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-12-03T08:13:25.526Z","updated_at":"2026-01-05T20:39:33.467Z","avatar_url":"https://github.com/coot.png","language":"Vim script","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CRDispatcher Vim Plugin\nThis is a utility plugin which is used in my other Vim plugins.  It allows\nregistering callback functions which transform the command line after hitting\nenter: for example EnchantedVim is using it to add `\\v` to patterns.\n\nIt also has a nice hack to make `c_CTRL-F` work nicely: it will transform\nthe line when entering the command line.  The `crdispatcher#CRDsiaptcher` dict\nwhich is passed to callbacks has `ctrl_f` entry which is `1` in this case.\nThis is useful if a callback should only be used with `\u003cCR\u003e` or `c_CTRL-F`.\n\nThe plugins that depend on it are:\n* [System](https://github.com/coot/System)\n* [CommandAlias](https://www.github.com/coot/cmdalias_vim)\n* [EnchantedVim](https://github.com/coot/EnchantedVim)\n\n## Callbacks\nEvery callback function accepts one argument: the crdispatcher#CRDispatcher\ndictionary, and it can modify the cmdline value.  A callback can also be\na dictionary with a dict function `__transform_cmd__`.   You can copy the\n`crdispatcher#CallbackClass` and use its `__init__` method.  For more\nexamples look at [EnchantedVim](https://github.com/coot/EnchantedVim). \n\n\n## Note\nYou can use the expression register with Vim 7.3.686 or later.  With an\nearlier version you will not be able to use it.\n\n## Code\nThis plugin is a simple example of OO programing in VimL.\n\n* Copyright: © Marcin Szamotulski, 2014\n* License: vim-license, see `:help license`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoot%2Fcrdispatcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoot%2Fcrdispatcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoot%2Fcrdispatcher/lists"}