{"id":13898365,"url":"https://github.com/kuznetsss/shswitch","last_synced_at":"2025-07-17T15:33:07.629Z","repository":{"id":55142153,"uuid":"237822818","full_name":"kuznetsss/shswitch","owner":"kuznetsss","description":"Vim plugin to switch between header and source","archived":true,"fork":false,"pushed_at":"2020-02-16T09:59:05.000Z","size":6,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-07T18:46:09.398Z","etag":null,"topics":["vim","vim-plugin"],"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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kuznetsss.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"License.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-02T19:17:19.000Z","updated_at":"2023-09-29T05:01:08.000Z","dependencies_parsed_at":"2022-08-14T13:20:20.962Z","dependency_job_id":null,"html_url":"https://github.com/kuznetsss/shswitch","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/kuznetsss%2Fshswitch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kuznetsss%2Fshswitch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kuznetsss%2Fshswitch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kuznetsss%2Fshswitch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kuznetsss","download_url":"https://codeload.github.com/kuznetsss/shswitch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226274855,"owners_count":17598861,"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":["vim","vim-plugin"],"created_at":"2024-08-06T18:04:15.622Z","updated_at":"2024-11-25T04:31:21.960Z","avatar_url":"https://github.com/kuznetsss.png","language":"Vim script","funding_links":[],"categories":["Vim Script"],"sub_categories":[],"readme":"# SHSwitch vim plugin\n\nSHSwitch is a simple plugin to switch between header and source files. It assumes that header and source file has same name but may be located at different directories.\n\n## Usage\n\nSHSwitch provide only one command `:SHSwitch` to switch between header and source.\n\n## Options\n\nAvailable options and default values:\n\n* `g:shswitch_source_extensions` - array of source files extensions. Default value: `['c', 'cpp']`\n* `g:shswitch_header_extensions` - array of header files extensions. Default value: `['h', 'hpp']`\n* `g:shswitch_root_flags` - array of project root files. Default value: `['CMakeLists.txt']`\n\n## Algorithm of searching corresponding file \n\n* Check if corresponding file is in current directory.\n* Search upward for one of `g:shswitch_root_flags` in directory above current and assume that directory with found root flag is project root.\n* Find corresponding file recursive in project root directory.\n\n## Installation\n\nTo install via [Vim-Plug](https://github.com/junegunn/vim-plug) add line to your `vimrc` file:\n\n`Plug 'kuznetsss/shswitch'`\n\nI haven't tested but similar line should work with other vim plugin managers.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkuznetsss%2Fshswitch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkuznetsss%2Fshswitch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkuznetsss%2Fshswitch/lists"}