Sublime Forum

Some suggestions from an Ultraedit user

#1

Hi,

Love the app, I just threw some money your way and bought it :smile:

I come from a long time user of Ultraedit, but it’s getting a bit bloated and clumsy. Some features I am really missing from the UE & UES side of things are listed below. If Sublime could integrate these features it would be even more awesome sauce than it already is!

1. Favourite files
A quick selection area or popup which you can use the keyboard or mouse to select saved favourite files, this would save me and I’m sure other people a lot of time. This is by far the most missed featured from UE & UES that I am missing, slowing me down a bit wandering huge file structures.

2. Trim trailing spaces
via menu / short cut key & right menu context

3. Selection to upper case
via menu / short cut key & right menu context

4. Selection to lower case
via menu / short cut key & right menu context

5. Tab indentation doesn’t remember between files
Maybe a global tab size in a settings panel we can change?

6. Convert tabs to spaces
via menu

7. Convert spaces to tabs
via menu

8. Always show code collapse and expand nodes
On/Off via settings menu

9. Code collapse and expand all
via menu / short cut key

10. show current file encoding in base bar with tab size and language type detection

0 Likes

Tab indentations issues
#2

11. Hide/Show preview side list in context menu right click on document.

0 Likes

#3

12. Maintain tab indentation when navigating via cursor movement via arrow keys
Eg. if your in a function then have 2+ lines blank tab indented, navigate through them using the cursor up and down and you will find you loose the tab indentation position.

function bob()
{
// code comment

 // blank lines above will loose cursor tab indentation position via arrow key navigation

}

0 Likes

#4

Menu: Edit / Convert Case / Upper Case
Keymap entry: { “keys”: “shift+f5”], “command”: “upper_case” }

Menu: Edit / Convert Case / Lower Case
Keymap entry: { “keys”: “ctrl+f5”], “command”: “lower_case” }

You can also create your own Context.sublime-menu file to add these commands to the right-click menu.

0 Likes

#5
  1. See here for a plugin from facelessuser

  2. Have a look at these options in Preferences > Settings – Default

"trim_automatic_white_space": true, "trim_trailing_white_space_on_save": false,
3. Edit > Convert Case > Upper Case (CTRL + K, CTRL + U)

  1. Edit > Convert Case > Lower Case (CTRL + K, CTRL + L)

  2. You can customize this at the user, project, and syntax levels.

  3. Left click the “Tabs: X” text in the lower right corner of the window. Select “Convert indentation to spaces”

  4. Left click the “Spaces: X” text in the lower right corner of the window. Select “Convert indentation to tabs”

  5. I don’t believe this is possible on file open, but CTRL + K, CTRL + 1 will collapse the first level; CTRL + K, CTRL + 2 will collapse the second level, etc.

  6. CTRL + K, CTRL + 1 to collapse all. CTRL + K, CTRL + J to expand all. If you have Vintage enabled, you can use zc to collapse the current block, or zo to expand it (from command mode).

  7. Bottom right shows tab size/spaces, and current syntax. File encoding in File > Save With Encoding, and these settings:

"default_encoding": "UTF-8", "fallback_encoding": "Western (Windows 1252)",

  1. Maybe you mean CTRL + K, CTRL + B (hide/show the sidebar?) Otherwise see Sidebar Enhancements from tito

  2. I believe if you’re at the end of the line, you’ll stay there whenever possible. Might be wrong.

0 Likes

#6
  1. Looks like you might want to put this into your user prefs:

"trim_automatic_white_space": false,

0 Likes

#7

If I understand what you’re looking for, the setting is:

// Hides the fold buttons unless the mouse is over the gutter
"fade_fold_buttons": false,

You can create a command to toggle this (or any other) setting via the Command Palette by adding something like this in your User/Default.sublime-commands:

	{
		"caption": "User: Show/Hide Fold Buttons",
		"command": "toggle_setting",
		"args": {"setting": "fade_fold_buttons"}
	}

Adding a toggle to a menu – but why would you want to? the palette is much faster – is very similar. Look at the default menus in Default/*.sublime-menu

Hope this helps,
Alex

0 Likes

#8

Some very helpful tips there, thanks for your replies all :smile:

However there is one thing just driving me crazy… The tab indentation.

Eg:
Make a html file, then inthe body type

<ul>
                <li>test<li>
------- press enter for empty line (note it keeps tab indent) -----------
------- press enter for empty line (note it keeps tab indent) -----------
------- press enter for empty line (note it keeps tab indent) -----------
------- press enter for empty line (note it keeps tab indent) -----------
</ul>

So what you have entered and expect is:

<ul>
                <li>test<li>
                |tab
                |tab
                |tab
                |tab
</ul>

What we actually get is:

<ul>
                <li>test<li>
|
|
|
|
</ul>

Tabs are gone… And if I am many tabs in, then I end up pressing tab like there’s no tomorrow…

Try it, once you have made entered that, if you try to navigate to the empty tab indented lines you will notice that the tab indent has been lost and you end up pressing tab for each line you made that was empty.

This happens in so many places.

Is there an option to save tabs, even if there is nothing on the line?

Thanks

D

0 Likes

#9

Try one of:
“trim_automatic_white_space”: false,
“trim_trailing_white_space_on_save”: false

0 Likes

#10

Not sure I understand you correctly but I think that what settings you are looking for is:

"trim_automatic_white_space": false

It’s true by default but you want it to false.

0 Likes

#11

Nice one thanks :smile:

0 Likes