# Dev Build 3116

**URL:** <https://forum.sublimetext.com/t/dev-build-3116/21148>\
**Category:** General Discussion\
**Created:** [June 22, 2016, 8:00am UTC](https://forum.sublimetext.com/t/dev-build-3116/21148 "2016-06-22T08:00:32Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![jps](https://forum.sublimetext.com/letter_avatar_proxy/v4/letter/j/b4bc9f/32.png) [@jps](https://forum.sublimetext.com/u/jps)\
**Post date:** [June 22, 2016, 8:00am UTC](https://forum.sublimetext.com/t/dev-build-3116/21148/1 "2016-06-22T08:00:32Z")

</div>

Dev Build 3116 is out now at [https://www.sublimetext.com/3dev](https://www.sublimetext.com/3dev)

Settings now open in a new window, with the default and user settings side-by-side. Likewise for key bindings.

Another highlight is the on\_hover API, which is used by the new show\_definition functionality. The basics of on\_hover are:

`class Example(sublime_plugin.EventListener): def on_hover(self, view, point, hover_zone): pass`  
hover\_zone will be one of sublime.HOVER\_TEXT, sublime.HOVER\_GUTTER or sublime.HOVER\_MARGIN.

Along with on\_hover are a couple of new flags for show\_popup: HIDE\_ON\_MOUSE\_MOVE and HIDE\_ON\_MOUSE\_MOVE\_AWAY. The latter flag will hide the popup if the mouse moves away from the popup, but won’t hide the popup if the mouse moves towards it.

API documentation with more details is at [http://www.sublimetext.com/docs/3/api\_reference.html](http://www.sublimetext.com/docs/3/api_reference.html)

---

<div class="post-metadata">

**Author:** ![kingkeith](https://forum.sublimetext.com/user_avatar/forum.sublimetext.com/kingkeith/32/50274_2.png) [@kingkeith](https://forum.sublimetext.com/u/kingkeith)\
**Post date:** [June 22, 2016, 8:17am UTC](https://forum.sublimetext.com/t/dev-build-3116/21148/2 "2016-06-22T08:17:40Z")

</div>

If I have a maximized window, and I click on `Preferences` -\> `Settings` or `Preferences` -\> `Key Bindings`, I would like it if the new window opened was also maximized. I see that `File` -\> `New Window` and opening a project also open a non-maximized window, so I guess this is a feature request 🙂 maybe make it configurable? 🙂

(previously I almost never worked with more than one window, so didn’t notice it so much…)

> <https://github.com/SublimeTextIssues/Core/issues/242#issuecomment-239423172>

---

<div class="post-metadata">

**Author:** ![noreffer](https://forum.sublimetext.com/letter_avatar_proxy/v4/letter/n/ed8c4c/32.png) [@noreffer](https://forum.sublimetext.com/u/noreffer)\
**Post date:** [June 22, 2016, 8:20am UTC](https://forum.sublimetext.com/t/dev-build-3116/21148/3 "2016-06-22T08:20:50Z")

</div>

When I open keybindings / settings - the default view is empty - it is ok? In older builds, the default file has list of default settings / keybindings - now is empty…

---

<div class="post-metadata">

**Author:** ![kingkeith](https://forum.sublimetext.com/user_avatar/forum.sublimetext.com/kingkeith/32/50274_2.png) [@kingkeith](https://forum.sublimetext.com/u/kingkeith)\
**Post date:** [June 22, 2016, 8:22am UTC](https://forum.sublimetext.com/t/dev-build-3116/21148/4 "2016-06-22T08:22:17Z")

</div>

@noreffer what platform are you on? it’s working for me on Windows

---

<div class="post-metadata">

**Author:** ![noreffer](https://forum.sublimetext.com/letter_avatar_proxy/v4/letter/n/ed8c4c/32.png) [@noreffer](https://forum.sublimetext.com/u/noreffer)\
**Post date:** [June 22, 2016, 8:26am UTC](https://forum.sublimetext.com/t/dev-build-3116/21148/5 "2016-06-22T08:26:46Z")

</div>

OS X, I will look this on Windows at home…

---

<div class="post-metadata">

**Author:** ![jps](https://forum.sublimetext.com/letter_avatar_proxy/v4/letter/j/b4bc9f/32.png) [@jps](https://forum.sublimetext.com/u/jps)\
**Post date:** [June 22, 2016, 8:38am UTC](https://forum.sublimetext.com/t/dev-build-3116/21148/6 "2016-06-22T08:38:24Z")

</div>

@noreffer check that you’ve got 3116 and not 3115, that was an issue in 3115

---

<div class="post-metadata">

**Author:** ![noreffer](https://forum.sublimetext.com/letter_avatar_proxy/v4/letter/n/ed8c4c/32.png) [@noreffer](https://forum.sublimetext.com/u/noreffer)\
**Post date:** [June 22, 2016, 8:42am UTC](https://forum.sublimetext.com/t/dev-build-3116/21148/7 "2016-06-22T08:42:41Z")

</div>

Yes, I must have 3115… now I have 3116 and it’s OK!

---

<div class="post-metadata">

**Author:** ![rppn](https://forum.sublimetext.com/user_avatar/forum.sublimetext.com/rppn/32/55845_2.png) [@rppn](https://forum.sublimetext.com/u/rppn)\
**Post date:** [June 22, 2016, 9:38am UTC](https://forum.sublimetext.com/t/dev-build-3116/21148/8 "2016-06-22T09:38:31Z")

</div>

Thanks for this build, greatly appreciated.

---

<div class="post-metadata">

**Author:** ![apaju](https://forum.sublimetext.com/letter_avatar_proxy/v4/letter/a/df705f/32.png) [@apaju](https://forum.sublimetext.com/u/apaju)\
**Post date:** [June 22, 2016, 9:44am UTC](https://forum.sublimetext.com/t/dev-build-3116/21148/9 "2016-06-22T09:44:42Z")

</div>

Using build 3116, unsaved file contents is corrupted, also file paths, if they contain umlauts etc.  
Every time I open sublime, characters get more and more corrupt.

To reproduce:

1. open new file
2. write “ä abc”
3. close sublime
4. open sublime
5. unsaved file contains: ffc3ffa4 abc

![](https://forum.sublimetext.com/uploads/default/original/3X/e/c/ec39cce7565b674af0c354f88e1d38e29f16f29d.png)

![](https://forum.sublimetext.com/uploads/default/original/3X/8/f/8ff75d37179100d14a1f3c3348771aea26592423.png)

---

<div class="post-metadata">

**Author:** ![gwenzek](https://forum.sublimetext.com/letter_avatar_proxy/v4/letter/g/7c8e57/32.png) [@gwenzek](https://forum.sublimetext.com/u/gwenzek)\
**Post date:** [June 22, 2016, 9:51am UTC](https://forum.sublimetext.com/t/dev-build-3116/21148/10 "2016-06-22T09:51:43Z")

</div>

Thanks jps the popup API opens a lot of possibilities.

But it breaks the [PackageDev](https://packagecontrol.io/packages/PackageDev) build system for converting YAML to tmTheme. (Or maybe it’s just I’m not good at YAML).

I tried to put the `popupCss` key in my YAML-thTheme:

```auto
    popupCss: "<![CDATA[
      html {
        background-color: #42342C;
        color: #BDAE9D;
      }
    ]]>"

```

But it generates:

```
    <key>popupCss</key>
    <string>&lt;![CDATA[html { background-color: #42342C; color: #BDAE9D; }]]&gt;</string>

```

I want the same thing but with `<` and `>` instead of `&lt;` and `&gt;`. Is there a way to prevent the escaping ?

EDIT: the answer is don’t use the `CDATA`, it’s not necessary.

---

<div class="post-metadata">

**Author:** ![kingkeith](https://forum.sublimetext.com/user_avatar/forum.sublimetext.com/kingkeith/32/50274_2.png) [@kingkeith](https://forum.sublimetext.com/u/kingkeith)\
**Post date:** [June 22, 2016, 9:57am UTC](https://forum.sublimetext.com/t/dev-build-3116/21148/11 "2016-06-22T09:57:25Z")

</div>

@gwenzek if you are not using any special XML characters in your CSS, there is no need to enclose it in CDATA. I think you should log an issue on the PackageDev repo for it though.

---

<div class="post-metadata">

**Author:** ![jps](https://forum.sublimetext.com/letter_avatar_proxy/v4/letter/j/b4bc9f/32.png) [@jps](https://forum.sublimetext.com/u/jps)\
**Post date:** [June 22, 2016, 10:00am UTC](https://forum.sublimetext.com/t/dev-build-3116/21148/12 "2016-06-22T10:00:05Z")

</div>

@apaju thanks for the report, 3117 will be out shortly with a fix for that

---

<div class="post-metadata">

**Author:** ![iamntz](https://forum.sublimetext.com/user_avatar/forum.sublimetext.com/iamntz/32/49144_2.png) [@iamntz](https://forum.sublimetext.com/u/iamntz)\
**Post date:** [June 22, 2016, 10:32am UTC](https://forum.sublimetext.com/t/dev-build-3116/21148/13 "2016-06-22T10:32:26Z")

</div>

Hey @jps, thanks for the update.

Couple of things:

1. Keybindings supports few naming patterns: `Default.sublime-keymap` and `Default (Platform).sublime-keymap`. I’m using the first variant on custom keymaps and the configuration window show me a beautiful blank document. Probably an idea would be to either ask which one to show or show all of them.

- It would be nice to implement an autoscroll for configuration keys, so if i select… let’s say `scroll_speed` on one side, jump the other side to the same key. That’s because the documentation is in only one place 🙂

Btw, show\_definition is implemented by default? Or is just an API thingy?

---

<div class="post-metadata">

**Author:** ![kingkeith](https://forum.sublimetext.com/user_avatar/forum.sublimetext.com/kingkeith/32/50274_2.png) [@kingkeith](https://forum.sublimetext.com/u/kingkeith)\
**Post date:** [June 22, 2016, 10:37am UTC](https://forum.sublimetext.com/t/dev-build-3116/21148/14 "2016-06-22T10:37:40Z")

</div>

@iamntz from the release notes:

> Hovering over a symbol will show a popup indicating where it’s defined. This is controlled with the `show_definitions` setting.

so `show_definition` is implemented by default 🙂

---

<div class="post-metadata">

**Author:** ![iamntz](https://forum.sublimetext.com/user_avatar/forum.sublimetext.com/iamntz/32/49144_2.png) [@iamntz](https://forum.sublimetext.com/u/iamntz)\
**Post date:** [June 22, 2016, 10:56am UTC](https://forum.sublimetext.com/t/dev-build-3116/21148/15 "2016-06-22T10:56:03Z")

</div>

> [@kingkeith](#):
>
> so show\_definition is implemented by default 🙂

Great. It doesn’t work then 😃

> **[Ionuț Staicu](https://ionutstaicu.com/)**

The whole project is indexed, go to definition and go to symbol and go to symbol in project works as expected.

The video is made on a clean 3116 portable, no plugins or any customization are made (other than font size).

It only works for certain languages?

---

<div class="post-metadata">

**Author:** ![kingkeith](https://forum.sublimetext.com/user_avatar/forum.sublimetext.com/kingkeith/32/50274_2.png) [@kingkeith](https://forum.sublimetext.com/u/kingkeith)\
**Post date:** [June 22, 2016, 11:02am UTC](https://forum.sublimetext.com/t/dev-build-3116/21148/16 "2016-06-22T11:02:53Z")

</div>

@iamntz hmm, works in a Python file (and finds the PHP method with the same name in a different file!) but apparently not in a PHP file…

 ![](https://forum.sublimetext.com/uploads/default/original/3X/3/b/3b60e5d8e560744af46fa067e4664dda445e1aa7.png)

---

<div class="post-metadata">

**Author:** ![kingkeith](https://forum.sublimetext.com/user_avatar/forum.sublimetext.com/kingkeith/32/50274_2.png) [@kingkeith](https://forum.sublimetext.com/u/kingkeith)\
**Post date:** [June 22, 2016, 11:05am UTC](https://forum.sublimetext.com/t/dev-build-3116/21148/17 "2016-06-22T11:05:11Z")

</div>

looks like it is due to the code in `symbol.py` in the Default package - starting at line 166 - treating HTML differently, and thus not noticing it is a PHP file, so it is broken for all syntaxes that are embedded in HTML:

```
    # Limit where we show the hover popup
    if view.score_selector(point, 'text.html'):
        class_ = view.score_selector(point, 'meta.attribute-with-value.class')
        id_ = view.score_selector(point, 'meta.attribute-with-value.id')
        if not class_ and not id_:
            return
    else:
        if not view.score_selector(point, 'source'):
            return
        if view.score_selector(point, 'comment'):
            return
        # Only show definitions in a string if there is interpolated source
        if view.score_selector(point, 'string') and not view.score_selector(point, 'string source'):
            return
```

---

<div class="post-metadata">

**Author:** ![iamntz](https://forum.sublimetext.com/user_avatar/forum.sublimetext.com/iamntz/32/49144_2.png) [@iamntz](https://forum.sublimetext.com/u/iamntz)\
**Post date:** [June 22, 2016, 11:08am UTC](https://forum.sublimetext.com/t/dev-build-3116/21148/18 "2016-06-22T11:08:51Z")

</div>

Uuuuuuu, looks so pretty! 😃

Anyhow, i found another issue, which i think is not necessary related:

```auto
jQuery(document).ready(function($){
  function foo(argument) {}
})

```

`foo` is not displayed in the Symbol list, although it is a valid symbol, no?

---

<div class="post-metadata">

**Author:** ![kingkeith](https://forum.sublimetext.com/user_avatar/forum.sublimetext.com/kingkeith/32/50274_2.png) [@kingkeith](https://forum.sublimetext.com/u/kingkeith)\
**Post date:** [June 22, 2016, 11:10am UTC](https://forum.sublimetext.com/t/dev-build-3116/21148/19 "2016-06-22T11:10:45Z")

</div>

odd, it is displayed for me:

 ![](https://forum.sublimetext.com/uploads/default/original/3X/9/6/963205a7b39d4db5871cc704b878383c9984335b.png)

---

<div class="post-metadata">

**Author:** ![iamntz](https://forum.sublimetext.com/user_avatar/forum.sublimetext.com/iamntz/32/49144_2.png) [@iamntz](https://forum.sublimetext.com/u/iamntz)\
**Post date:** [June 22, 2016, 11:15am UTC](https://forum.sublimetext.com/t/dev-build-3116/21148/20 "2016-06-22T11:15:44Z")

</div>

Hmmmm, you’re right. On the portable version it works. On the installed (and heavy customized) it doesn’t.

I’ll start toggling packages and see which one is the nasty one.

[Next page](https://forum.sublimetext.com/t/dev-build-3116/21148.md?page=2)
