Skip to content

We should add an option to paste and switch the slashes around #14949

@zadjii-msft

Description

@zadjii-msft

This was in a mail thread earlier this week:

Say that I copy this path
onecore/foo/bar/baz.dll

I want it to end up like this:
onecore\foo\bar\baz.dll

Or vice versa. Is there a specific keyboard shortcut that would allow me to translate the path in the clipboard to the final format easily, without having to pop into an editor and an S&R?

At first I was like "I mean that's kinda silly"

But I've had to copy/paste paths out of git status back into del commands a few times since then and you know what? I think this is a good idea now.

Questions:

  • What do we name it?
  • Do we support \ -> /?
  • Presumably we don't want to do this just for paths, since onecore/foo/bar/baz.dll might not be a local path we can sanitize. In fact let's not confuse this with path sanitation at all
  • this is literally just "replaceSlashes": "\"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-SettingsIssues related to settings and customizability, for console or terminalIssue-TaskIt's a feature request, but it doesn't really need a major design.Product-TerminalThe new Windows Terminal.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions