Skip to content

feat: add path type selection and line number support#3

Open
foolgry wants to merge 3 commits intoxfcy:masterfrom
foolgry:feature/add-path-type-and-line-number
Open

feat: add path type selection and line number support#3
foolgry wants to merge 3 commits intoxfcy:masterfrom
foolgry:feature/add-path-type-and-line-number

Conversation

@foolgry
Copy link
Copy Markdown

@foolgry foolgry commented Mar 16, 2026

Summary

  • Add PathType enum for choosing between relative and absolute paths in plugin settings
  • Add line number copying when text is selected in editor (e.g., :10 or :5-10)
  • Update settings UI to allow path type selection with preview

Changes

  • CopyAction.kt: Add path type logic and line number extraction from editor selection
  • SettingComponent.kt: Add path type combo box and update preview
  • SettingConfigurable.kt: Handle path type in isModified/apply/reset
  • SettingState.kt: Add PathType enum and pathType field

Test plan

  • Test copying relative path (default behavior)
  • Test copying absolute path with prefix
  • Test copying path with line number when text is selected
  • Test settings persistence after restart IDE

foolgry added 3 commits March 16, 2026 16:47
- Add PathType enum for choosing between relative and absolute paths
- Add line number copying when text is selected in editor
- Update settings UI to allow path type selection
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