Sublime Forum

BUG: Command switch_file is case sensitive on Windows

#1

with this code:

[code] { “keys”: “alt+o”], “command”: “switch_file”, “args”: {“extensions”: “pas”, “dfm”]}, “context”:

		{ "key": "selector", "operator": "equal", "operand": "source.pascal" }
	]
}

[/code]
alt+o on a file ‘toto.PAS’ open the same file with the name ‘toto.pas’
The extensions must not be case sensitive on Windows or we need the possibility to specify regex as extension.

startup, version: 2035 windows x64 channel: dev

0 Likes

#2

This behavior is very annoying for me.
Is there something I miss in how to use this command in case insensitive mode ?

0 Likes

#3

I’ll put in a fix for the next version so that it at least won’t try to open the same filename with a different case extension.

Beyond that, switch_file is a plugin in Default/switch_file.py, so you can tweak it as you wish.

0 Likes

#4

Oops sorry, didn’t notice the switch_file.py
I’ve corrected my file, thanks for the answer.

0 Likes