Sublime Forum

Bug on opening Windows Explorer .txt files

#1

I’ve changed my windows to open .txt files with Sublime Text instead of notepad. It’s all fine, but if I need open a .txt file that is in a network shared folder (by example, “\ANOTHER-PC\TESTS\FOOBAR.TXT”), the file is opened blank in ST2. No content is shown. The same file opened in Notepad works nicely. It’s happening with any .txt file…

PS.: There is some automatic tool to replace notepad with ST2?

0 Likes

#2

(don’t blame me if your computer blows up) but this works for me to replace Windows Notepad with Sublime Text:

reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe" /t REG_SZ /v "Debugger" /d "c:\path\to\sublime-text.exe" -z
0 Likes

#3

When you open the file, are you doing so via a double-click? If so, can you try to repeatedly double-click the file and see if it shows up? I’m wondering if this is another example of this issue: Network file corruption

0 Likes

#4

There is a known issue with command line handling of network paths on Windows in build 2181, this is fixed in the current series of dev builds - sublimetext.com/dev

jburnett: It’s unrelated

0 Likes