| View previous topic :: View next topic |
| Author |
Message |
keyboardfreak
Joined: 09 Oct 2004 Posts: 135 Location: Budapest, Hungary
|
Posted: Sun Nov 12, 2006 1:26 pm Post subject: Getting rid of backslash |
|
|
Windows paths with backslash are a pain in the ass. Unlike on Linux where the path separator character is slash which is at a convenient place on the keyboard backslash is inconvenient when one wants to type a path into the command prompt.
So backslash had to go.
This small script makes it possible to use slash in the command prompt when typing a path. When typing a slash, a backslash will appear.
Sometimes however simple slash is also needed (e.g. for command line options), so slash after a space results in a normal slash:
| Code: | #IfWinActive, ahk_class ConsoleWindowClass
:*?: /:: /
:*?:/::\
#IfWinActive
|
|
|
| Back to top |
|
 |
robiandi
Joined: 08 Aug 2006 Posts: 50
|
Posted: Sun Nov 12, 2006 5:07 pm Post subject: |
|
|
on a german keyboard I would suggest for the characters \ { [ ] }
| Code: | :*?://::\
:*?:/ /:://
:*?:77 7::777
:*?:777::{{}
:*?:88 8::888
:*?:888::[
:*?:99 9::999
:*?:999::]
:*?:00 0::000
:*?:000::{}}
|
|
|
| Back to top |
|
 |
Azerty Guest
|
Posted: Wed Nov 22, 2006 3:21 pm Post subject: |
|
|
On french keyboard, I like this one :
| Code: | ; --------- Mapper ² en \
SC029::\ |
|
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
Posted: Wed Nov 22, 2006 3:59 pm Post subject: |
|
|
I use ² as prefix for various hotstrings, so instead I remapped it differently:
| Code: | +²::Send \
^²::Send ``%A_Space%
|
_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2") |
|
| Back to top |
|
 |
Tuncay
Joined: 07 Nov 2006 Posts: 384 Location: Berlin
|
Posted: Wed Nov 22, 2006 10:04 pm Post subject: |
|
|
For that and more than that I have made UPath. Its an AutoHotkey function (library). But it do more than only converting slash to backslash. Its currently in heavy development phase. What do u think about that?
Umm, I now UPath is not the fastes thing ever ... |
|
| Back to top |
|
 |
|