Skip to content

improvement: Fix IDEA cursor navigation line number issue and add -r parameter to reuse existing window #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Douzi-Qishen
Copy link

What
This PR fixes an issue where the IntelliJ IDEA command-line launcher would open the correct file but fail to position the cursor at the specified line and column. It also adds the -r flag so that files and folders are opened in an existing IDEA window rather than spawning a new one.

Why
Opening a new window each time breaks workspace continuity and can degrade performance.

Changes
Updated the launcher invocation array to include -r before --goto

…e number

🚸 修复 IDEA 跳转到光标但无法定位具体行号的问题

Added the `-r` parameter to force opening the file or folder in the existing window.
添加了 `-r` 参数,强制在已有窗口中打开文件或文件夹。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant