{"id":28739304,"url":"https://github.com/softunerix/vgo-jump","last_synced_at":"2026-03-06T16:31:06.602Z","repository":{"id":296858127,"uuid":"994239252","full_name":"Softunerix/vgo-jump","owner":"Softunerix","description":"Open Laravel class or package files from Vim using file, line, and column context","archived":false,"fork":false,"pushed_at":"2025-06-02T18:49:42.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-03T01:41:00.683Z","etag":null,"topics":["golang","vim","vim-plugin"],"latest_commit_sha":null,"homepage":"","language":"Go","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/Softunerix.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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,"zenodo":null}},"created_at":"2025-06-01T14:20:37.000Z","updated_at":"2025-06-02T18:49:45.000Z","dependencies_parsed_at":"2025-06-03T01:52:10.510Z","dependency_job_id":null,"html_url":"https://github.com/Softunerix/vgo-jump","commit_stats":null,"previous_names":["softunerix/vgo-jump"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Softunerix/vgo-jump","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Softunerix%2Fvgo-jump","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Softunerix%2Fvgo-jump/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Softunerix%2Fvgo-jump/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Softunerix%2Fvgo-jump/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Softunerix","download_url":"https://codeload.github.com/Softunerix/vgo-jump/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Softunerix%2Fvgo-jump/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260109457,"owners_count":22960023,"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":["golang","vim","vim-plugin"],"created_at":"2025-06-16T06:00:41.297Z","updated_at":"2026-03-06T16:31:06.565Z","avatar_url":"https://github.com/Softunerix.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VGO-JUMP\n\n`vgo-jump` is a simple CLI tool that helps locate the full namespace of a Laravel, Python, Java package or class by extracting the word at a specific position in a file and matching it against `use` statements.\n\n## Features\n\n- Extracts a word from a specified line and column in a file\n- Finds the corresponding `use` statement to resolve the full package path\n- Outputs the matched path to stdout\n- Designed for PHP, Python, Java projects\n\n## Usage\n\n```bash\n./vgo-jump \u003cfile\u003e \u003cline\u003e \u003ccol\u003e\n```\n\n## Build\n\n```bash\ngo build -o vgo-jump main.go utils.go filepath_utils.go language_config.go\n```\n\n## To use in Neo-VIM\n\n```bash\nsudo cp vgo-jump /usr/local/bin/vgo-jump\nsudo mkdir -p /etc/vgo-jump \nsudo cp languages.yaml /etc/vgo-jump/languages.yaml\n```\n\n```bash\nmkdir -p ~/.config/nvim/lua/vgojump\nsudo nvim ~/.config/nvim/lua/vgojump/init.lua\n```\n\n```lua\nlocal M = {}\n\nM.jump = function()\n  local filepath = vim.fn.expand(\"%:p\")\n  local line = vim.fn.line(\".\")\n  local col = vim.fn.col(\".\")\n\n  local cmd = string.format(\"vgo-jump %s %d %d\", filepath, line, col)\n\n  vim.fn.jobstart(cmd, {\n    stdout_buffered = true,\n    stderr_buffered = true,\n    on_stdout = function(_, data, _)\n      if data and #data \u003e 0 then\n        for _, output in ipairs(data) do\n          if output and output ~= \"\" then\n            vim.cmd(\"tabnew \" .. output)\n            break\n          end\n        end\n      end\n    end,\n    on_stderr = function(_, data, _)\n      if data then\n        vim.notify(table.concat(data, \"\\n\"), vim.log.levels.ERROR)\n      end\n    end,\n  })\nend\n\nreturn M\n```\n\n```bash\nsudo nvim ~/.config/nvim/init.lua\n```\n\n```lua\nlocal status, vgojump = pcall(require, \"vgojump\")\nif not status then\n  vim.notify(\"vgojump module error: \" .. vgojump, vim.log.levels.ERROR)\n  return\nend\n\nvim.api.nvim_create_user_command(\"Jump\", function()\n  vgojump.jump()\nend, {})\n\n-- Set key mapping\nvim.keymap.set(\"n\", \"\u003cleader\u003ej\", \":Jump\u003cCR\u003e\", { noremap = true, silent = true })\n```\n\nIn NVIM:\n```vimscript\n:Jump\n```\nUse this command in NVIM to run `vgo-jump` on the current file at the specified line and column.\n\n## Limitations\n\n- Only works with basic `use` statements\n- Assumes valid UTF-8 input files\n\n## Future modifications\n\n- [ ] Multiple languages support\n- [ ] Find a better way to get the project root path","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftunerix%2Fvgo-jump","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoftunerix%2Fvgo-jump","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftunerix%2Fvgo-jump/lists"}