sublimehq / sublime_merge

Issue tracker for Sublime Merge
https://www.sublimemerge.com
271 stars 14 forks source link

Add "Copy File Path" to right click context menu #1748

Open ismell opened 1 year ago

ismell commented 1 year ago

When looking at a commit, I often find my self needing to copy the file path of the file I'm looking at. I normally have to right click and "Open in Editor", then in sublime I right click and "Copy File Path". I would be great if Sublime Merge had this by default in the context menu.

themilkman commented 1 year ago

You can create that entry e.g. on Diff views by adding the following to the Diff Context.sublime-menu file in your Sublime Merge User directory:

  {
    "caption": "Copy File Path",
    "command": "copy_to_clipboard",
    "args": {
      "text": "$path"
    }
  },

(as part of an probably existing Array [])

ismell commented 1 year ago

Awesome that worked! We should include it by default :)