Sublime Forum

Simple Questions, Simple Answers

#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

#27

Sublime Text doesn’t use the UUID, instead relying on the path to identify the file. To make the file compatible with TextMate, you should ensure that the GUID is unique - if you google for guidgen, you should find a tool that will generate them for you. As far as I’m aware, that should be all that’s required to make it work with TextMate, but I recommend you test it to be sure.

0 Likes

#28

I already had cygwin installed so I just grabbed e2fsprogs and ran uuidgen. It’s a pretty safe bet that it’s going to be unique right? There isn’t somewhere to test if some Textmate package is already using it or something is there?

0 Likes

#29

Yes pretty safe bet It will be unique :smile:

0 Likes

#30

How come plugins won’t load if you put them in a folder in the Packages > User directory?

0 Likes

#31

The simple question (or perhaps stupid question) I have is unfortunately only tangentially related to the Sublime project. The minimap is awesome, and basically I’m wondering if anyone knows of any web browsers that have a feature or plugin comparable to minimap? I could have sworn I’ve seen some in the past, but now that I’ve realized how awesome the feature is and I’m actually looking for it I can’t find it anywhere. Any help would be appreciated.

0 Likes