{"id":16340723,"url":"https://github.com/casey/cargo-quickfix","last_synced_at":"2025-03-23T00:32:22.817Z","repository":{"id":48590985,"uuid":"371885081","full_name":"casey/cargo-quickfix","owner":"casey","description":"Populate Vim quickfix files with Cargo messages","archived":false,"fork":false,"pushed_at":"2022-09-28T00:02:09.000Z","size":34,"stargazers_count":9,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T15:49:08.529Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/casey.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-29T05:06:42.000Z","updated_at":"2024-10-10T06:32:25.000Z","dependencies_parsed_at":"2022-08-27T11:31:48.007Z","dependency_job_id":null,"html_url":"https://github.com/casey/cargo-quickfix","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/casey%2Fcargo-quickfix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casey%2Fcargo-quickfix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casey%2Fcargo-quickfix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casey%2Fcargo-quickfix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/casey","download_url":"https://codeload.github.com/casey/cargo-quickfix/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245040235,"owners_count":20551297,"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-10-10T23:57:38.348Z","updated_at":"2025-03-23T00:32:22.503Z","avatar_url":"https://github.com/casey.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `cargo-quickfix`\n\n`cargo-quickfix` is a `cargo` wrapper for use with Vim's [quickfix feature](http://vimdoc.sourceforge.net/htmldoc/quickfix.html).\n\nThe normal way to use the quickfix feature is to run build commands inside of Vim using `:make`, which automatically populates the quickfix buffer.\n\nHowever, this can be inconvenient if you prefer to run `cargo` outside of Vim.\n\n`cargo-quickfix` allows you to run `cargo` commands outside of `vim`, but still populate the quickfix list with error locations.\n\n## Quick Start\n\n- Install:\n\n  ```\n  cargo install cargo-quickfix\n  ```\n\n- Run:\n\n  ```\n  cargo quickfix test\n  ```\n\n- Open vim:\n\n  ```\n  vim\n  ```\n\n- Open the error file and jump to the first error:\n\n  ```\n  :cfile\n  ```\n\n- Jump to the next error:\n\n  ```\n  :cn\n  ```\n\n## Usage\n\nRun `cargo quickfix \u003cCOMMAND\u003e`, for example, `cargo quickfix test`.\nYou can also omit the command, in which case `cargo quickfix` will default to `check`.\n\nUpon running, the output of the `cargo` command will be copied to `.errors.txt`.\n\nInside a Vim instance in the same directory, load `.errors.txt` into the quickfix buffer and jump to the first error, if any, with `:cfile`.\n\nUseful commands include:\n- `:cn` Go to the next error.\n- `:cp` Go the previous error.\n- `:cope` Open the quickfix list.\n\nSee `:help quickfix` for information.\n\nOptionally, install the [vim-qf](https://github.com/romainl/vim-qf) plugin for additional mappings and functionality.\n\n## Ignoring `.errors.txt`\n\nTo avoid committing `.errors.txt` or seeing it in `git diff` and `git status`, you can add it to your repositories `.gitignore`.\n\nTo avoid needing to do this for every repository, you can add it to a global ignore file:\n\n```\ngit config --global core.excludesFile '~/.gitignore'\necho .errors.txt \u003e ~/.gitignore\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcasey%2Fcargo-quickfix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcasey%2Fcargo-quickfix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcasey%2Fcargo-quickfix/lists"}