noklesta / SublimeQuickFileCreator

Quick File Creator plugin for Sublime Text
64 stars 26 forks source link

Fix Windows relative path logic. Fixes #8 #9

Closed twolfson closed 10 years ago

twolfson commented 10 years ago

As discovered in #8, we have path issues on Windows. The source of the issue is the number-based slicing is running into issues with escaped characters on Windows (e.g. F:\\). To resolve this, we are moving away from numbers and onto string replacement.

In this PR:

Tested in Sublime Text 3 on Windows and Sublime Text 2 on Linux

/cc @noklesta

noklesta commented 10 years ago

Great, thanks! I've tested this on ST2 and 3 on OSX and Windows 7, and it seems to work fine :)

twolfson commented 10 years ago

Np, thanks for the quick merge =)