auto hotkey script to convert backward to forward slashes

isaac

Though I'm Windows based, I do my web development work in a customized console that mimics much of Unix particularities. One of these is that it uses forward slashes for paths, instead of backwards. I'm looking for a way to be able to copy/paste from a path with backward slashes to a path with forward ones. Perhaps there's an auto hotkey script I could use for this?

Thanks for insights!

Aaron Miller

What you've got is a mess of hacks, one piled atop another, and trying to use an AutoHotkey script to translate paths is just going to make that even worse.

What you need is to rip out that nonsense and do a proper Cygwin install, which will give you a proper terminal emulator in mintty, and a proper Unix shell environment which has already had a lot of the work done to make it play nicely with Windows -- for example, there's a utility, cygpath, which is included by default with Cygwin, and which accurately translates paths in both directions.

I'm not sure why people seem lately to be so hot on Git Bash over Cygwin. Judging by the page you cite for the process you followed, installing Cygwin is actually less effort than piling up the hacks, and you get a better experience out of it.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Triple DES without using forward or backward slashes

From Dev

Python Convert Back Slashes to forward slashes

From Dev

AutoHotKey script replace backslashes with forward slashes

From Dev

Remove backward slashes in javascript

From Dev

How to replace backward slash(\) with forward slash(/) in TCL script

From Dev

Appcmd from Bash script replacing backslashes with forward slashes, how to prevent?

From Dev

Auto Hotkey- script which checks if bandicam recording is "running"

From Dev

Return Json, but it includes backward slashes “\”,

From Dev

Iterating forward and backward

From Dev

Iterating forward and backward

From Dev

using pushState with forward slashes

From Dev

escaping forward slashes in elasticsearch

From Dev

Preg match forward slashes

From Dev

What are Forward Slashes in XSLT for?

From Dev

Regex for escaping forward slashes and back slashes

From Dev

VBA Script to duplicate a value, replace forward slashes and merge whilst adding a certain value on the end in Excel

From Dev

How to use rpartition to split the string with backward slashes

From Dev

Replacing backslashes, forward slashes and double forward slashes with double backslashes

From Dev

Replace all forward slashes that are in paths, with backslash (so, not all forward slashes)

From Dev

Replacing backslashes, forward slashes and double forward slashes with double backslashes

From Dev

move forward and backward by one word

From Dev

move forward and backward by one word

From Dev

forward and backward search algorithm on an array

From Dev

R carry forward and backward conditionally

From Dev

Replace all forward slashes with dashes

From Dev

Prevent escaping forward slashes in templates

From Dev

How to split a URL on forward slashes

From Dev

Am I dumb? What's wrong with this one line for an auto hotkey script

From Java

PHP Date Convert with slashes

Related Related

  1. 1

    Triple DES without using forward or backward slashes

  2. 2

    Python Convert Back Slashes to forward slashes

  3. 3

    AutoHotKey script replace backslashes with forward slashes

  4. 4

    Remove backward slashes in javascript

  5. 5

    How to replace backward slash(\) with forward slash(/) in TCL script

  6. 6

    Appcmd from Bash script replacing backslashes with forward slashes, how to prevent?

  7. 7

    Auto Hotkey- script which checks if bandicam recording is "running"

  8. 8

    Return Json, but it includes backward slashes “\”,

  9. 9

    Iterating forward and backward

  10. 10

    Iterating forward and backward

  11. 11

    using pushState with forward slashes

  12. 12

    escaping forward slashes in elasticsearch

  13. 13

    Preg match forward slashes

  14. 14

    What are Forward Slashes in XSLT for?

  15. 15

    Regex for escaping forward slashes and back slashes

  16. 16

    VBA Script to duplicate a value, replace forward slashes and merge whilst adding a certain value on the end in Excel

  17. 17

    How to use rpartition to split the string with backward slashes

  18. 18

    Replacing backslashes, forward slashes and double forward slashes with double backslashes

  19. 19

    Replace all forward slashes that are in paths, with backslash (so, not all forward slashes)

  20. 20

    Replacing backslashes, forward slashes and double forward slashes with double backslashes

  21. 21

    move forward and backward by one word

  22. 22

    move forward and backward by one word

  23. 23

    forward and backward search algorithm on an array

  24. 24

    R carry forward and backward conditionally

  25. 25

    Replace all forward slashes with dashes

  26. 26

    Prevent escaping forward slashes in templates

  27. 27

    How to split a URL on forward slashes

  28. 28

    Am I dumb? What's wrong with this one line for an auto hotkey script

  29. 29

    PHP Date Convert with slashes

HotTag

Archive