Commit 9c891bf
committed
Fix FmCopy command
The FmCopyCommand should copy the path with the correct separator to
clipboard, which means to use `\` on Windows. Otherwise it is useless
for external programs.
The Command is changed as follows:
1. copy absolute path with `\` on Windows and `/` on Linux or Mac
2. copy relative path with `\` on Windows and `/` on Linux or Mac
3. copy "path from root" with `/` on all OSs as it is expected for use
in Sublime Text only.1 parent 0173432 commit 9c891bf
1 file changed
Lines changed: 12 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
| 18 | + | |
| 19 | + | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
29 | 30 | | |
30 | | - | |
| 31 | + | |
0 commit comments