Sublime Forum

Dev Build 3014

#7

THIS! Now take my money already :wink:

0 Likes

#8

This build enables the keybindings for Alt-(Shift-)hyphen on the Mac. These are normally used to produce en-dash and em-dash e.g. on the German or US keyboard. It would be nice if they could be disabled. (I googled and found suggestions to bind to null or ā€œnoneā€, but the best I achieve is that it does not jump, I still cannot insert dashes.

Overall, I would prefer if keybindings on the Mac did never contain only the alt modifier, but always also control or command (crtl/super), because otherwise they will inevitably shadow some characters. If that was at least an option to be configured, I would very much appreciate it.

Another note: The menu says that jumping back is control-shift-L control-b, but alt-hyphen seems to do the same?

I would be grateful for any help, and will downgrade to 3012 for the moment.

0 Likes

#9

Jump Back / Jump Forward were done by Hong, one of Sublime HQs new employees (the other being Kari, whose work you can see in the recent blog post). You can direct all blame there, provided I can cajole him into joining the forum :slight_smile:

0 Likes

To stay or to leave of this community
To stay or to leave of this community
Atom - GitHub Editor
#10

I do generally avoid option key bindings on OS X, but missed that alt-hyphen was inserting something other than a hypen in my limited testing. Iā€™ll change the binding to controlĀ± for future builds.

0 Likes

#11

Waiting for a blog post with some info on everyone (yeah, including you, Jon!): picture, small description, role and so on :geek:

And some future plans for Sublime would be much appreciated too!

0 Likes

#12

I was not sure how much of a co-incidence this was :wink:. Thank you very much!

Thanks again for the prompt help!

0 Likes

#13

Yes, please.

0 Likes

#14

Damn, itā€™s soooo close, but there are still glitches caused by rounded corners on the edge of regions.
ā€œno_antialiasā€ doesnā€™t help either.

0 Likes

#15

[quote=ā€œjpsā€]

Jump Back / Jump Forward were done by Hong, one of Sublime HQs new employees (the other being Kari, whose work you can see in the recent blog post). You can direct all blame there, provided I can cajole him into joining the forum :smile:[/quote]

So thanks Hong, clever implementation and nicely writing (even unittest!).
I think thereā€™s only a small bug (typo) here:

elif name == 'move_to' and args'to'] == 'bof' and args'to'] == 'eof': # move to bof/eof get_jump_history(view.window().id()).push_selection(view)
I suppose it must be a or in the test:

        elif name == 'move_to' and (args'to'] == 'bof' or args'to'] == 'eof'):

When I saw the addition of on_text_command/on_window_command, I immediately though it will be useful for this kind of things but Iā€™m not sure that, if I had to write it myself, my solution will be as clean.
Using add_region() in on_selection_modified/on_modified event is a nightmare, undo command screw everything.

Now Iā€™ve a question for Hong:
Currently the commands that trigger a push_selection() is written in stone (does it means something in english ?) in the on_text_command.
I have my own commands to navigate in the view and I like that they trigger the push_selection() too.
Is it OK to create my own eventlistener and use push_selection() ?

[code]import sublime, sublime_plugin
import Default.history_list as history_list

class MyJumpHistoryUpdater(sublime_plugin.EventListener):
def on_text_command(self, view, name, args):
if view.settings().get(ā€˜is_widgetā€™):
return
if name == ā€˜moveā€™ and argsā€™byā€™] == ā€˜wordsā€™:
# syntax is {ā€˜byā€™: ā€˜linesā€™, ā€˜forwardā€™: True}
history_list.get_jump_history(view.window().id()).push_selection(view)[/code]

0 Likes

#16

Really liked the add_region changes!

Maybe a bug though:
The API says I can use an icon name of ā€œcrossā€. When I try it gives a yellow and red stripped graphic with this error:
Unable to decode Packages/Theme - Default/cross.png

0 Likes

#17

Iā€™m not seeing the fading minimap nor its related option in the default settings file. Anyone?

0 Likes

#18

good


0 Likes

#19
  1. As long as thereā€™s a setting to switch this on and off Iā€™m fine with it.
  2. If draw_minimap_border setting is true, when I move the mouse over the minimap, the border flashes and disappears. Looks like a bug.
0 Likes

#20

[quote=ā€œjpsā€]

  • Minimap view rectangle auto hides, and only displays on mouse over. This is an experimental change, Iā€™d like feedback from anyone who thinks this is for the worse.[/quote]

Recently Iā€™ve set the ā€œoverlay_scroll_barsā€ to ā€œenabledā€ on my Windows box and activated the ā€œdraw_minimap_borderā€.
The point was to expand my workspace by removing the scroll bars, now I use the minimap as an indicator of my position in the file in place of the scroll bar.
Iā€™m pretty happy with this configuration and I think I will keep it.

So the auto hide of the minimap view rectangle donā€™t make me happy, cos Iā€™ve now no indicator of my relative position in the file without using the mouse or moving the view.
So a setting to enabled/disable auto hide is really a must have for me.

0 Likes

#21

You have forgotten this setting in the Default/Preferences.sublime-settings.

Edit: @bizoo There is already a setting, just set ā€œalways_show_minimapā€: true

0 Likes

#22

Bug: Iā€™m getting html tag autocompletions in meta.tag scope.

0 Likes

#23

[quote=ā€œjpsā€]

  • Minimap view rectangle auto hides, and only displays on mouse over. This is an experimental change, Iā€™d like feedback from anyone who thinks this is for the worse.[/quote]

For a window with a 1x1 row/column layout the change is merely a bit distracting. For multi-column layouts the minimap loses nearly all of its utility (at least for the way I use it).

0 Likes

#24

Okay I made a gif to show my auto-complete problem


In ST3 I get <acronym as an auto-complete which is way off.

Here is the auto-complete code, itā€™s the same for both ST2 and ST3
github.com/SublimeText/ColdFusi ā€¦ -plugin.py

0 Likes

#25

Strange, I am on Windows and jump back doesnā€™t seem to work. German keyboard (notebook, so canā€™t check numpad), and altĀ± does nothing. The menu entry does nothing either.

jps, while you are at quick panel stuff, have you considered the following two changes / features:

1.) Keep open quick panels open when you alt+tab away from the Sublime window. At the moment, Command Palette stays open, all others close. Strangely inconsistent.

2.) Add a command to reopen the last instance of Go to ā€¦ , with saved input

0 Likes

#26


3014 keeps asking me for permissions every time I save a file. 3013 did not.

0 Likes