Sublime Forum

Simple Questions, Simple Answers

#7

i too have used the preserve case option. as EJ12N, not too often, but when i did, it was a time saver.

0 Likes

#8

Is there any quick and easy way to change the functionality of opening new files? I’d rather have them open furthest to the right rather than to the right of the currently active file. Nothing major, just a small annoyance.

0 Likes

#9

+1

0 Likes

#10

I’ll add an option for this in the next beta

0 Likes

#11

[quote=“EJ12N”]
for example to toggle regex matching something like alt+r, then toggle search in selection, alt+s, etc… I hate to use the mouse and select them when I’m typing the pattern to find/replace… e-text had this.[/quote]

+1. I do a lot of find/replace and want keyboard shortcuts to toggle the find/replace options. It helps my productivity a lot.

0 Likes

#12

Key bindings for the find / replace panels are in the 20091017 beta - also, open-furthest-to-the-right is available via editing Preferences/General Preferences

0 Likes

#13

how do i bind to the keypad asterisk? i want to bind: ctrl+shift+* also tried ctrl+shift+keypad_asterisk didn’t help

0 Likes

#14

Maybe keypad_multiply? Not sure.

0 Likes

#15

BINGO!

0 Likes

#16

I have a file with about 90k characters and sublime really slows down with loading the file as well as copying and pasting large chunks of code. Just kinda of curious what part of the program slows it down so much and if that is something that could be fixed in the future?

0 Likes

#17

you can try two options that was raised in the past: first is to temporarily turn off syntax highlighting (change file syntax to ‘plain text’), the other option is to turn off minimap (alt+m). this is not to underestimate this issue, which i think deserves better attention and a more robust solution from sublime side.

0 Likes

#18

Changing the syntax highlighting to plain text should be the answer.

The issue here is that Sublime Text always keeps the syntax highlighting information about the buffer fully up to date, which results in a bunch of wasted work doing calculations for text that won’t be displayed. It’s on the todo list to change this to a lazy evaluation model.

0 Likes

#19

What encoding does Sublime save a new file as? Does it just use the fallback encoding setting?

Also is there anyway to tell what an opened file’s encoding is?

0 Likes

#20

If you hover over the tab for the file in question, the status bar should show the full path and encoding. In another thread I did wonder whether encoding might be made visible in the status bar all the time, but that’s just personal preference.

0 Likes

#21

Ah thanks much.

Yeah I think it would fit perfectly between the line ending box and the syntax box at the bottom right. Don’t really see how that could bother anyone :s Possibly when you click on it, it could be a shortcut to the save with encoding menu as well.

0 Likes

#22

Hello!

How do I duplicate selection / line? Is there a shortcut? I could not find it in Edit menu.

Thanks a lot!

0 Likes

#23

ekolguy, look at Power User Package.

0 Likes

#24

Thanks Ilya, just what I needed :smile:

0 Likes

#25

Is there anyway to fix the PHP syntax highlighting to look for embedded SQL over multiple lines?

For example:

mysql_query(' SELECT * FROM `table` WHERE `field` = 5 AND `field2` = 10 ');

won’t get highlighted because of the new line between the comma and SELECT. How it’s set up in the language file currently it should match over multiple lines but it doesn’t because it doesn’t match over multiple lines and you can’t force the regex into /m.

Any ideas?

0 Likes

#26

Hate to double post but doubt anyone would notice if I edited my previous post :s If anyone reads this that can delete posts feel free to delete my previous post. There is pretty much no solution to the question I asked and I just ended up hardcoding a solution for my project.

I tried googling around but couldn’t really find any info. Anyone know anything about the UUID field in themes? It would seem Sublime doesn’t use it but if I wanted to share a theme and have it work in Textmate what should I do with this field? Does Textmate just automatically generate it and I should just delete it? Or do I need to generate one and include it? If so how would I go about doing that?

Lastly, if I made a theme that works in Sublime is there anything technical that would make it incompatible with Textmate?

0 Likes