Home Download Buy Blog Forum Support

BUG: Command switch_file is case sensitive on Windows

BUG: Command switch_file is case sensitive on Windows

Postby bizoo on Thu Mar 03, 2011 7:55 am

with this code:
Code: Select all
   { "keys": ["alt+o"], "command": "switch_file", "args": {"extensions": ["pas", "dfm"]}, "context":
      [
         { "key": "selector", "operator": "equal", "operand": "source.pascal" }
      ]
   }

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
bizoo
 
Posts: 886
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: BUG: Command switch_file is case sensitive on Windows

Postby bizoo on Sun Mar 06, 2011 7:55 pm

This behavior is very annoying for me.
Is there something I miss in how to use this command in case insensitive mode ?
bizoo
 
Posts: 886
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: BUG: Command switch_file is case sensitive on Windows

Postby jps on Sun Mar 06, 2011 11:04 pm

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.
jps
Site Admin
 
Posts: 3071
Joined: Wed Mar 19, 2008 12:33 pm

Re: BUG: Command switch_file is case sensitive on Windows

Postby bizoo on Mon Mar 07, 2011 8:02 am

Oops sorry, didn't notice the switch_file.py
I've corrected my file, thanks for the answer.
bizoo
 
Posts: 886
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland


Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot], qgates and 26 guests