{"id":21810678,"url":"https://github.com/samdark/codemirror-autosuggest","last_synced_at":"2025-04-13T22:11:26.919Z","repository":{"id":58240172,"uuid":"48916802","full_name":"samdark/codemirror-autosuggest","owner":"samdark","description":"CodeMirror autosuggest addon","archived":false,"fork":false,"pushed_at":"2019-05-23T15:47:34.000Z","size":5,"stargazers_count":47,"open_issues_count":1,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-27T12:38:25.028Z","etag":null,"topics":["autocomplete","autosuggest","codemirror"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/samdark.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"samdark","patreon":"samdark"}},"created_at":"2016-01-02T16:56:07.000Z","updated_at":"2025-03-15T20:58:12.000Z","dependencies_parsed_at":"2022-08-31T00:02:22.874Z","dependency_job_id":null,"html_url":"https://github.com/samdark/codemirror-autosuggest","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samdark%2Fcodemirror-autosuggest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samdark%2Fcodemirror-autosuggest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samdark%2Fcodemirror-autosuggest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samdark%2Fcodemirror-autosuggest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samdark","download_url":"https://codeload.github.com/samdark/codemirror-autosuggest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248788925,"owners_count":21161727,"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":["autocomplete","autosuggest","codemirror"],"created_at":"2024-11-27T13:37:07.754Z","updated_at":"2025-04-13T22:11:26.891Z","avatar_url":"https://github.com/samdark.png","language":"JavaScript","funding_links":["https://github.com/sponsors/samdark","https://patreon.com/samdark"],"categories":[],"sub_categories":[],"readme":"CodeMirror autosuggest addon\n============================\n\nTriggers autocompletion when certain character is typed.\n\n\u003cimg src=\"screenshot.png\" /\u003e\n\n## Usage\n\nInclude scripts needed into webpage.\n\n```html\n\u003cscript src=\"bower_components/codemirror/lib/codemirror.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"bower_components/codemirror/addon/hint/show-hint.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"bower_components/codemirror-autosuggest/autosuggest.js\"\u003e\u003c/script\u003e\n```\n\nInitialize CodeMirror specifying suggestions config as an array in `autoSuggest` config property.\n\n```javascript\nvar editor = CodeMirror.fromTextArea(document.getElementById('text'), {\n\tmode: 'gfm',\n\tautoSuggest: [\n        {\n            mode: 'markdown',\n            startChar: '@',\n            listCallback: function() {\n                return [\n                    {\n                        text: 'cebe ',\n                        displayText: 'cebe'\n                    },\n                    {\n                        text: 'jacmoe ',\n                        displayText: 'jacmoe'\n                    },\n                    {\n                        text: 'samdark ',\n                        displayText: 'samdark'\n                    }\n                ];\n            }\n        },\n        {\n            mode: 'markdown',\n            startChar: '#',\n            listCallback: function() {\n                return [\n                    {\n                        text: '#hash ',\n                        displayText: 'hash'\n                    }\n                ]\n            }\n        }\n    ]\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamdark%2Fcodemirror-autosuggest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamdark%2Fcodemirror-autosuggest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamdark%2Fcodemirror-autosuggest/lists"}