Sublime Text: Enable search highlighting for large files - search

I have a file that I refer to routinely (it consists of timestamps), and I use Sublime Text to edit it. Normally, when I search for a token in Sublime (Command-F), all instances of the token are also highlighted.
However, the file recently went above 30,000 lines, and this seems to be a threshold for Sublime to automatically disable search highlighting.
Is there a way to re-enable search highlighting in Sublime?

This has been recently resolved.
Build 4114 adds the following options in the Sublime Preferences to make these kind of options configurable
find_scroll_highlights_limit
find_highlight_matches_max_size
find_regex_highlight_matches_max_size
find_in_files_max_result_size

Related

How to disable Emmet entirely for a specific syntax in Sublime Text 3?

I have the Emmet package installed for Sublime Text 3 via Package Control. I do a lot of Markdown editing in Sublime, and I've noticed that as Markdown files get larger, inserting a tab by pressing my keyboard's Tab button gets slower and slower. However, when I disable Emmet, inserting tabs is snappy and quick again. This leads me to believe that Emmet trying to parse what I'm writing and searching for ways to expand it is slowing tabbing down significantly.
Things I have tried:
"ignored_packages": ["Emmet"] in my syntax-specific user settings.
"tab_completion": false in my global Sublime settings.
"disable_tab_abbreviations_for_scopes": "text.html.markdown" in my Emmet settings.
To be clear: I still want Emmet to run for other syntax/filetypes. I just want Emmet, or at least whatever part of Emmet's behaviour is slowing down my tabbing, to be disabled when I'm writing in Markdown (*.md) files, or whichever files have the markdown syntax selected.
Thanks!
You can try new Emmet 2 extension (still in development): https://github.com/emmetio/sublime-text-plugin
It should work much faster and better

Enable highlighting on selected words in all panes in SublimeText 3

If I select a word in one pane, this word doesn't highlight in other.
How can I make highlighting in both panes?
I don't think it's possible using ST out of the box.
BUT, I'm pretty sure using the SublimeText Plugin API you can write a custom plugin to achieve this.
Have not seen any plugin that can do this till now.

In Sublime Text, how can I increase the difference/contrast of the line highlight color from active file and other open, inactive files?

OSX / Sublime Text 3
In Sublime, I work on several files at a time and have them set up in panes with 2 or more files visible at once. I have my <key>highlight_line</key> turned on and configured to be red (high visibility) in my current color scheme. Among the three files, the red highlighted line is visible (and that's good) but the difference between the active file and the other inactive file(s) is different, but nominal. So, when I return to Sublime from another app, I jump right in and wind up editing the wrong file… often. (not good)
I've looked in the default prefs file for a value that appears relevant to what I'm after but to no avail. Any solutions or ideas are greatly appreciated.
After creating another "help me" post on sublime text forum, it was suggested that the package "inactive panes" could solve my issue. And it does!! While my ultimate solution to this would be leveraging the application itself in some way, this is a great solution until that becomes possible.

RTL language with Sublime Text editor

The RTL languages are not supported in the sublime text editor
I tried this plug-in Bidirectional text support
on windows os
Copied all files from the zip Sublime-Text-2-BIDI-master to the ST3 folder and changed the font type and size.
then I copied the unicodedata.pyd to C:\Users\USERNAME\AppData\Roaming\Sublime Text 2\Packages\Bidirectional text support\bidi
now the Tools > Bidirectional text part didn't look gray anymore but it is still disabled.
also I copied these two lines but it didn't work
sys.platform.startswith('win'):
sys.path.append('../../..')
Any help would be appreciated
In order to get Sublime Text to work with Arabic characters using Sublime Text BIDI plugin on Windows correctly, ensure you've done the following:
Copy the plugin folder to the following path C:\Users\USERNAME\AppData\Roaming\Sublime Text 2\Packages\
Copy unicodedata.pyd from ST installation directory to both, the main plugin folder which in your case is Sublime-Text-2-BIDI-master and inside bidi folder.
Set your sublime user-settings to the following:
{
"font-face": "arial",
"font_size": 11,
"default_encoding": "UTF-8",
"fallback_encoding": "Arabic (Windows 1256)"
}
Reload the plugin by viewing rtl.py and saving
In the case that doesn't fix it, you can read what sublime console log outputs when you click on Bidirectional text for a given Arabic text, console log can be accessed through ctrl+~.
Very Easy,
Just follow this Video steps
دعم اللغة العربية في برنامج Sublime
1- Download the Sublime-BIDI-master folder from Github of solution
2- Extract it and paste under \Sublime Text Build (whatever)\Data\Packages(the downloaded folder).
3- open sublime wit any RTL Language file and right click anywhere you'll new options (Bidirectional text) .. Click it :).
However, in my Sublime version (build 3126), Arabic letters will be reshaped when switching to Bidi.
Initially in the range U+0621-U+064A, which are the usual Unicode codes for Arabic letters, characters will be mapped to the range U+FE70-U+FEFC, which are codes for each (isolated, initial, middle, final) Arabic connected forms. These latter codes, called Arabic-Presentation-Forms-B, are deprecated by Unicode and their usage should be very limited.
For example, before switching to Bidi, the word كتب, looks ب ت ك, from left to right U+0643 U+062A U+0628. This is the memory order. (It is up to the final rendering tool to display the string in visual order by connecting letters.)
After Bidi switching in Sublime, the word will appear good as كتب, because the codes are ﺐ ‎U+FE90 followed by ﺘ U+‎FE98 followed by ﻛ U+‎FEDB. In this order. That means, in a Bidi enabled tool like a browser, it will appear ﺐﺘﻛ as the final visual order. This is not what the user expects.
So, not only Bidi switching changes the letters code, it also changes the memory order.
Personal experience.
When editing a source file (HTML and other languages or formats) containing some RTL characters, it is really tricky to navigate in the text edited. So the mode "before" (logical or memory order) might be very helpful than the mode "after" (visual or display order). With logical order, it's useless to join letters, it doesn't make sens.
Check this link, I had the same problem but solved it with the Sublime Text BIDI plugin.
I was still facing an issue because of the editor's font. It will be recommended to use a fixed-width font like Courier New. This should ensure the plug-in works as expected.

How to enable brackethighlighter plugin in sublime text 3?

I am using sublime text 3 build 3059 , brackethighlighter plugin is installed but not working how to make it work ? i tried several solutions but no effect.
here is screenshot:
The plugin is working - you'll notice in your screenshot that the opening and closing {} brackets are bold underlined in white (the default style), and are also shown in the gutter, next to the line numbers. If you want to customize the display more, first open Preferences -> Package Settings -> Bracket Highlighter -> Bracket Settings - User. It will be blank at first. Next, open ... -> Bracket Settings - Default. Copy the entire contents of Default to User, then close Default (you can't edit it in Sublime Text 3).
Next, check out the Bracket Highlighter Sublime Text 3 docs and read all about how to customize the plugin to your heart's content. Good luck!

Resources