Skip to content

Feature: file-reference keyboard shortcut (Cmd+Option+K / Ctrl+Alt+K) to insert @file references #86

Description

@sxin0

Summary

Request: add a keyboard shortcut in Junie (CLI / IDE integration) to quickly insert a
file reference into the prompt — e.g. @path/to/file.ext#L1-99 — without typing
the path and line range by hand.

Why

When pointing Junie at a specific file or line range, the path and #Lstart-end currently
have to be typed manually. A dedicated shortcut would:

  • Speed up targeting the right code
  • Reduce typos in paths and line ranges
  • Bring Junie in line with the UX other AI coding integrations already offer

Reference implementation

The Claude Code [Beta] JetBrains plugin ships exactly this and is a good model:

File reference shortcuts: Use Cmd+Option+K (Mac) or Ctrl+Alt+K (Linux/Windows)
to insert file references (e.g., @File#L1-99)

Plugin page: https://plugins.jetbrains.com/plugin/27310-claude-code-beta-

Proposed

  • Cmd+Option+K (macOS) / Ctrl+Alt+K (Linux & Windows)
  • Inserts a file-reference token (@<path>#L<start>-<end>) at the cursor in the active prompt
  • Defaults to the currently active/selected editor file, using the current selection's
    line range when text is selected

Happy to help refine the token format to match Junie's existing @-mention conventions
if they differ.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions