-1
James McLaughlin 5 years ago • updated 5 years ago 1
Although you can e.g. ci" or ci( just fine, ci< does not work.
-1
Tony Brown 6 years ago • updated 6 years ago 1
-1
Completed
Matthew Ford 6 years ago • updated by Jon Skinner 6 years ago 0
Answer
Jon Skinner 6 years ago
Take a look at ~/.config/sublime-text-2/Packages/Default/Icon.png
-1
Andreas Schneider 5 years ago 0

When you have multiple cursors/selections which are not in the current view (i.e. you scrolled away from them) it might easily happen that you type away without noticing, that you actually modify multiple places at once. It would be nice to have a clear warning when an additional cursor is not currently visible. For example by showing one or two of these cursors (in their respective scope; i.e. the line they are in) at the top or bottom (depending on where they are in relation to your current view) of the editing window.

-1
Henry N 5 years ago in Plugin announcements • updated by Darin Morrison 5 years ago 2

Sublime text should be able to spot errors in real-time like Java does and offer a few solutions and why it is an error for all major languages.

-1
Sergey Morkovkin 5 years ago 0
I'm talking about find/replace dialog, console, file/folder rename dialog. Currently it spans the entire width of the editor. It would be nice to have an option an make it span code editor width only. This results:
- Easier to switch/focus attention (especially for people with bad eyesight).
- More height for the project view.
-1
Hay Kranen 6 years ago • updated 6 years ago 0
It seems the file open dialog doesn't always show all files in a folder. Sometimes you need to move back and forward before seeing all files. Sometimes the only way to prevent this is by restarting Sublime.

I'm using the latest build (2139) on Mac OS X Lion.
-1
Pavlos Vinieratos 6 years ago 0
like textmate does
-1
Completed
uid 6 years ago • updated by Jon Skinner 5 years ago 2
If any text is currently selected in the focused document, opening "Find" should use it (as "Find what"). It saves an extra copy and paste.

I'd prefer to click a "Reset" button in the "Find dialog" in cases where the text for which i'm looking isn't highlighted, than focus the document, copy, paste to "Find What" before I can search
Answer
Jon Skinner 6 years ago
The find_selected_text file setting is used for this. It defaults to false on OS X to adhere to platform conventions.
-1
Foster Brereton 5 years ago 0

Problems arise from the following set of steps:


  1. Open a locked document
  2. Make edits to the document
  3. Save -> Get Error about document being locked

The issue is getting the file unlocked painlessly so the user can save the edits made up to this point. I realize there are plugins that exist to auto-checkout files in source control, but this is an orthogonal issue. For example, if the checkout/unlock operation fails, the user is stranded with edits that cannot be saved.


Possible resolutions include:

  • Let the user drag the document icon (in OSX) in the window bar to another application to copy the file path. As of step 2 above it is greyed out and cannot be dragged without undoing the edits. 
  • Prevent the user from making edits in step 2 until the file has been unlocked. This is how other editors like BBEdit and Xcode behave. This would also be the point at which version control plugins would want to attempt to check out the file.
  • The ability to overwrite the locked file during step 3. Some kind of dialog to either cancel the edit or unlock the document. This would be a fallback option in the event a plugin failed to checkout/unlock the document, so the user could still save the edits (they would, of course, be on the hook for checking out the file manually.)
  • The ability to get the full path of the frontmost document quickly copied to the clipboard so it can be pasted in another application to checkout/unlock the locked file, making step 3 succeed.

-1
Oktay Acikalin 7 years ago • updated 7 years ago 1
-1
sp0r 7 years ago 0
Like: function xxx() from file inc.php completes in file index.php because inc.php ist included via include or requiere in index.php
-1
Alex Luckjanov 5 years ago • updated 5 years ago 2

I select some lines and press ctrl+shift+/:


It's incorrect. I expect to see this:


-1
vilas kadam 5 years ago • updated by Andreas Backx 5 years ago 1

I primarily use sublime for Web development, and the file types in use are HTML, CSS, JS, PHP.  I want to remove the unnecessary filetypes and syntax files that gets loaded like c++, erlang, java etc. Is there a way to configure this? 

-1
Oktay Acikalin 7 years ago • updated 7 years ago 6
I've written center_view_on_line.py. Today I wanted to refactor it 'cause it behaved strangely in some cases. Now I'm trying to come up with an algorithm to center the visible region over the current line or selection. I've got the final row numbers and could translate them into a proper region. If I compare the visible region I get by scrolling there manually and the target region my script calculates they seem to be nearly identical. But the view scrolls somewhere else - often the cursor is at the top of the screen. When querying the visible region again the coords are totally off.

Some vars I work with:
visible_region = (366, 998) # manually centered view
selection = [26, 26] # cursor in line w/o selection
region = [26, 26] # in this case same as selection
visible_region = [16, 36] # first row, last row from above
size = 2099 # self.view.size()
region_size = 0 # diff between region end and begin
visible_size = 20 # diff between last and first row
begin = 16 # calculated first row
end = 36 # calculated last row
target_region = (366, 946) # calculated for self.view.show()
target_region = [16, 36] # translated into first, last row
visible_region = (603, 1351) # region I get after self.view.show()

Any idea?
-1
Kim Blomqvist 5 years ago 0

If I select the following code below and press Ctrl-* to comment the whole block, ST2 only uncomments this line /* Disable master mode and enable as slave with SLA */.


void aery::twi_init_slave(uint16_t sla)
{
	/* Software reset. */
	aery::twi->CR.swrst = 1;
	while (aery::twi->CR.swrst);

	/* Disable master mode and enable as slave with SLA */
	aery::twi->SMR.sadr = sla;
	aery::twi->CR.msdis = 1;
	aery::twi->CR.sven = 1;
}
Result:
void aery::twi_init_slave(uint16_t sla)
{
	/* Software reset. */
	aery::twi->CR.swrst = 1;
	while (aery::twi->CR.swrst);

	 Disable master mode and enable as slave with SLA 
	aery::twi->SMR.sadr = sla;
	aery::twi->CR.msdis = 1;
	aery::twi->CR.sven = 1;
}
Expected result:
// void aery::twi_init_slave(uint16_t sla)
// {
// 	/* Software reset. */
// 	aery::twi->CR.swrst = 1;
// 	while (aery::twi->CR.swrst);

// 	/* Disable master mode and enable as slave with SLA */
// 	aery::twi->SMR.sadr = sla;
// 	aery::twi->CR.msdis = 1;
// 	aery::twi->CR.sven = 1;
// }
-1
Trevor Whitney 6 years ago • updated 6 years ago 0
I'm using Sublime Text 2, build 2139, on Ubuntu linux 11.10.

When I enable Vintage and enter insert mode, I am unable to type two consecutive z's. The second z is causing Sublime to replace the previous letter. So, for example, if I type "pizza", I will get "pia". However, type "size" has the expected result. Disabling Vintage alleviates the problem, but then I lose all my wonderful Vi shortcuts, which makes me very sad :(
-1
Ziang Song 5 years ago • updated 5 years ago 1

Find What: dddWooID

Replace with: eeeID


However, the result is eeeId


Please fix it. I am using 2.0.1 Build 2217. Thank you.

-1
braftre 6 years ago • updated 6 years ago 0
Would it be possible allow hypens when using tag#with-hyphen/tag.with-hyphen like in the snippets? As we use it as a common naming convention for css styles.

Also great work mate love this editor more and more.
-1
aristidesfl 6 years ago 0
Currently escape has no function while the focus is on the editor and no panels are open.

It is possible to change the keymap to achieve this by verifying negatively if all the other possible contexts for the escape key are not met.

This is very cumbersome and doesn't provide compatibility should new cases for the use of escape be added to the keymap file in future versions.

Would be nice to have a key which indicates if the focus is set on the text editor so the context of the escape key could be set in a affirmative manner.

Anyway, this doesn't really work because escape is hardset to take focus from the sidebar so it only gains focus momentainly and then goes away..