{"id":15764667,"url":"https://github.com/ctf0/vscode-remember-restore-cursor","last_synced_at":"2025-07-03T19:33:55.812Z","repository":{"id":84058341,"uuid":"326471468","full_name":"ctf0/vscode-remember-restore-cursor","owner":"ctf0","description":null,"archived":false,"fork":false,"pushed_at":"2023-03-24T17:57:17.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-11T12:18:57.610Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ctf0.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"ctf0"}},"created_at":"2021-01-03T18:13:54.000Z","updated_at":"2023-01-03T23:03:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"bb87a7d5-5989-40a2-a0a8-789014b4b709","html_url":"https://github.com/ctf0/vscode-remember-restore-cursor","commit_stats":{"total_commits":6,"total_committers":2,"mean_commits":3.0,"dds":0.5,"last_synced_commit":"b508b5faa1f4795b79de718cfdad94253b3dbe8f"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ctf0/vscode-remember-restore-cursor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctf0%2Fvscode-remember-restore-cursor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctf0%2Fvscode-remember-restore-cursor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctf0%2Fvscode-remember-restore-cursor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctf0%2Fvscode-remember-restore-cursor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ctf0","download_url":"https://codeload.github.com/ctf0/vscode-remember-restore-cursor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctf0%2Fvscode-remember-restore-cursor/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263388817,"owners_count":23459276,"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-04T12:04:24.043Z","updated_at":"2025-07-03T19:33:55.726Z","avatar_url":"https://github.com/ctf0.png","language":"JavaScript","funding_links":["https://github.com/sponsors/ctf0"],"categories":[],"sub_categories":[],"readme":"# Remember or Restore Cursor\n\nremember \u0026 restore cursor/s position with ease.\n\n\u003e what problem does this fix ?\n\ni usually run one or more linter on file-save through trmnl/cli \"not a big fan of editor plugins\", which might move the cursor all the way to the end of the file.\n\nso out of frustration of having to relocate the cursor everytime that happens, now we can remember the position b4 the trmnl/cli run and restore it back when all are done.\n\n# Notes\n\n- after restore, remembered positions are cleared.\n- u can use the ext with something like [macros](https://marketplace.visualstudio.com/items?itemName=ctf0.macros) to automatically save \u0026 restore cursor position each time you save a file ex.\n\n    - settings\n\n    ```jsonc\n    \"saveFile\": [\n        \"src.remember\",\n        \"workbench.action.files.save\",\n        {\n            \"command\": \"$delay\",\n            \"args\": {\n                \"delay\": 1000 // change accroding to your need\n            }\n        },\n        \"src.restore\"\n    ],\n    ```\n\n    - keybinding\n\n    ```json\n    {\n        \"key\": \"cmd+s\",\n        \"command\": \"macros.saveFile\",\n        \"when\": \"editorFocus\"\n    },\n    ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctf0%2Fvscode-remember-restore-cursor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fctf0%2Fvscode-remember-restore-cursor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctf0%2Fvscode-remember-restore-cursor/lists"}