ryu1kn / vscode-partial-diff

Visual Studio Code Extension. Take a diff of 2 parts of text(s)
https://marketplace.visualstudio.com/items?itemName=ryu1kn.partial-diff
MIT License
186 stars 16 forks source link

Feature request: Settings to remove individual partialDiff commands from editor context menu #26

Closed bfranklyn closed 6 years ago

bfranklyn commented 6 years ago

context

ryu1kn commented 6 years ago

Thanks for the suggestion @bfranklyn , maybe I can introduce a new configuration to opt them out.

https://code.visualstudio.com/docs/getstarted/keybindings#_when-clause-contexts

ryu1kn commented 6 years ago

Released as v1.2.0 :tada:

eamodio commented 6 years ago

@ryu1kn any chance for more granularity on this setting?

Maybe something like:

"partialDiff.hideCommandsOnContextMenu": [
    "SelectForCompare", 
    "ComparePrevious",
    "CompareClipboard",
    "CompareVisibleEditors",
    "PreCompare"
]

or

"partialDiff.hideCommandsOnContextMenu": {
    "SelectForCompare": false, 
    "ComparePrevious": false,
    "CompareClipboard": true,
    "CompareVisibleEditors": true,
    "PreCompare": true
}

Or some way to keep some options, but remove others?

ryu1kn commented 6 years ago

Hi @eamodio , sure thing. Do you mind telling me the motivation for that? e.g. You normally use only foo and bar; therefore only want to see them on the context menu.

eamodio commented 6 years ago

Sure. I only use select and compare with previous so I'd like only those on the menu

ryu1kn commented 6 years ago

Cool, makes sense. Thanks for clarifying it 😉