Home Download Buy Blog Forum Support

Write a command?

Write a command?

Postby Hilyin on Thu Dec 15, 2011 9:57 pm

In Textmate's bundle editor it allows me to create commands, I was curious if Sublime Text 2 has this ability?

I am looking to make a command that takes my highlighted text and makes it lowercase, and then also replace spaces with underscores, and assign it to a keyboard combination.

Thank you.
Hilyin
 
Posts: 12
Joined: Thu Sep 29, 2011 6:18 pm

Re: Write a command?

Postby C0D312 on Thu Dec 15, 2011 10:28 pm

Sounds like your describing the CaseConversion plugin: https://github.com/jdc0589/CaseConversion. Just download the plugin and put it in your packages directory (Preferences > Browse Packages). Use the command "convert to pascal." (Keybinding is ctrl+alt+c, ctrl+alt+p).
C0D312
 
Posts: 1063
Joined: Sun Jul 10, 2011 3:23 am

Re: Write a command?

Postby Hilyin on Thu Dec 15, 2011 11:15 pm

CaseConversion doesn't seem to be working for me on my Mac. Keybindings don't do anything, and there doesn't seem to be any menu items added by the plugin to manually click.
Hilyin
 
Posts: 12
Joined: Thu Sep 29, 2011 6:18 pm


Return to General Discussion

Who is online

Users browsing this forum: estmatic, Exabot [Bot], meigallodixital and 19 guests