bruno icon indicating copy to clipboard operation
bruno copied to clipboard

Feature Request: Copy Path / Copy Relative Path from collection tree context menu

Open pkarpovich opened this issue 7 months ago โ€ข 3 comments

I have checked the following:

  • [x] I've searched existing issues and found nothing related to my issue.

This feature

  • [x] would improve my quality of life in Bruno

Describe the feature you want to add, and how it would change your usage of Bruno

Bruno currently provides no built-in way to copy the path of a `.bru` file, folder, or any other item in the collection tree. I often need to reference these paths when working with AI coding assistants (Claude Code, etc.) or when sharing context with teammates. Right now the workflow is:

  1. Right-click a request or folder in Bruno -> no "copy path" option exists
  2. Open Finder / Explorer
  3. Navigate to the collection folder
  4. Find the file/folder and copy its path from the OS

Proposed: add two context-menu actions (and optionally keyboard shortcuts) on any file or folder in the collection tree:

  • Copy Path -> copy the absolute filesystem path, e.g. `/Users/me/projects/my-collection/auth/login.bru` or `/Users/me/projects/my-collection/auth`
  • Copy Relative Path -> copy path relative to the collection root, e.g. `auth/login.bru` or `auth`

The relative variant is the most useful for pasting into AI chats or sharing with teammates, since it isn't tied to a specific user's machine. The absolute variant is handy for one-off operations where the full filesystem location is needed.

This is a standard context-menu command in most modern editors and IDEs, and for a collection-tree-based tool like Bruno it fits naturally.

Happy to submit a PR for this if you're open to it.

pkarpovich avatar Apr 14 '26 15:04 pkarpovich

๐Ÿ”— Related PRs

usebruno/bruno#6097 - feat: add copy paste feature for folder [merged] usebruno/bruno#6944 - feat: add reveal in file manager option to workspace collections menu [merged] usebruno/bruno#7011 - fix: update sidebar item copy toast message [merged] usebruno/bruno#7656 - fix: handle copy/paste item for requests & js file [merged]


๐Ÿ“ Issue Planner

Check the box below or use the @coderabbitai plan command to generate an implementation plan and prompts that you can use with your favorite coding assistant.

  • [ ] Create Plan

๐Ÿงช Issue enrichment is currently in open beta.

You can configure auto-planning by selecting labels in the issue_enrichment configuration.

To disable automatic issue enrichment, add the following to your .coderabbit.yaml:

issue_enrichment:
  auto_enrich:
    enabled: false

๐Ÿ’ฌ Have feedback or questions? Drop into our discord!

coderabbitai[bot] avatar Apr 14 '26 15:04 coderabbitai[bot]

I think a good place to implement this feature for files would be the modal dialog that appears in v4.1.0 when you click on the request info.

The filename is already shown there, so two additional fields could be added for the Relative Path and Absolute Path. These fields could be selectable, with a button next to each one to copy the corresponding path to the system clipboard.

Image Image

For folder paths, in v4.1.0 you can open the folder's context menu and launch a terminal from there. The absolute path is already available in the terminal, or you can use the pwd command. You can then select the path and copy it with Ctrl+Insert.

The folder context menu is already quite crowded with options:

Image Image

gioisco avatar Aug 24 '26 11:08 gioisco

the relative-path variant is the one that quietly breaks. absolute is at least unambiguous, but a relative path like auth/login.bru is only resolvable if whoever receives it is already rooted at the collection dir. paste it into claude code and it resolves against the agent's cwd, not your collection root, so it silently lands on the wrong .bru or nothing at all, no error thrown. it's not tied to a machine like you said, but it is tied to the root, and the agent doesn't know that root. carrying the collection root (or a repo-relative anchor) alongside the copy is the part that keeps 'copy relative path' from just moving the ambiguity into the chat where nobody catches it.

m13v avatar Sep 08 '26 03:09 m13v