Home Download Buy Blog Forum Support

[bug] convert case

[bug] convert case

Postby SirG.Sublime on Sun Apr 21, 2013 10:16 am

Thanks for an amazing piece of software! I'm really just getting the basics out of it so far, but I've seen the potential and am very impressed.

If this thread is in the wrong location, please move it as needed.

Version Info
    - Sublime Text 3, Build 3021
    - Win7 Pro 64-bit w/sp1

Bug Info
    - ISSUE: keyboard shortcut for convert case
    - severity: minor
    - seems to happen in all document types and happens consistently
    - fresh install, or at least no files have been modified, updated, or customized
    - no plugins or extensions installed, except for what comes standard
    - FYI: using the menu items, the convert case works as expected

pressing CTRL-K
- once: does nothing
- twice: deletes everything from the cursor (or selected text) forward - current line only
- third time: nothing
- fourth time: repeats the process

pressing CTRL-U
- causes cursor to jump around document (it appears to be related to selections/changes to document history)

pressing CTRL-L
- once: selects current line
- twice or more: moves to next line and adds it to selection

This is certainly not critical, and someone may have already identified these. However, just in case, I wanted to let you know so they can be added to the list.

Posts: 1
Joined: Sun Apr 21, 2013 9:31 am

Re: [bug] convert case

Postby Lemon on Sun Apr 21, 2013 12:52 pm

Are you sure you are using the shortcuts correctly?
By the sounds of it you are just pressing the shortcuts individually, meaning the results you are getting are expected.

From the default key bindings json file:

Code: Select all
{ "keys": ["ctrl+u"], "command": "soft_undo" }

The soft undo command is why your cursor jumps around while pressing ctrl + u.

Code: Select all
{ "keys": ["ctrl+l"], "command": "expand_selection", "args": {"to": "line"} }

This expand selection shortcut selects the line you are currently on and then if you keep on pressing it adds the next line too.

Code: Select all
{ "keys": ["ctrl+k", "ctrl+k"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete to Hard EOL.sublime-macro"} }

Pressing k twice while holding ctrl runs the macro file to delete from the cursor to the end of the line.

Code: Select all
{ "keys": ["ctrl+k", "ctrl+u"], "command": "upper_case" },
{ "keys": ["ctrl+k", "ctrl+l"], "command": "lower_case" }

Pressing k and then u all while holding ctrl will convert the selected text to upper case, and using l instead of u will convert to lower case.

Please try selecting some text, then while holding ctrl press k then u or l immediately after without letting go of ctrl.
Posts: 27
Joined: Wed Jul 11, 2012 12:49 pm

Return to Technical Support

Who is online

Users browsing this forum: Alexa [Bot], Exabot [Bot], Google [Bot] and 18 guests