Sublime Forum

Dev Build 2043

#8

[quote=“ekolguy”]

The problem is, both of those files have unsaved changes in them.[/quote]

I am seeing the same behaviour on OS X 10.6.6. Save a file, do some changes, select Show Unsaved Changes, empty buffer.

This appears to always be the case for .html.erb files (which maps to the HTML (Rails) syntax), but for .js files Show Unsaved Changes works as expected.

Edit: Oh yeah, and thanks for a great update! ST2 is getting really, really good.

0 Likes

#9

With the new file creation from sidebar, would it be possible to specify a filename when creating the file, so kind of :

Right click folder -> click new file -> type name of file within tree -> begin editing file.

Thanks for all the changes :smile:

0 Likes

#10

[quote=“stiang”]

The problem is, both of those files have unsaved changes in them.
I am seeing the same behaviour on OS X 10.6.6. Save a file, do some changes, select Show Unsaved Changes, empty buffer.

This appears to always be the case for .html.erb files (which maps to the HTML (Rails) syntax), but for .js files Show Unsaved Changes works as expected.

Edit: Oh yeah, and thanks for a great update! ST2 is getting really, really good.[/quote]

Same here, look at the console if you don’t have an error like:
Traceback (most recent call last):
File “.\sublime_plugin.py”, line 230, in run_
File “.\diff.py”, line 25, in run
UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xe9 in position 17: ordinal not in range(128)

The error happen between the creation of the diff buffer and the filling of it, so the result is an empty buffer…

0 Likes

#11

[quote=“jps”]
I’ve been working on menus for this build, you can see this in a few areas:

  • Right click on a directory in the side bar, and you can create a new file at that location
  • Right click some files in the side bar, and you can delete them (files in folders only, not open files)[/quote]

Awesome release Jon, as always.

I found a small bug in relation to refresh not picking up file renames on OSX.

Steps to reproduce:

  • Add a folder to project

  • Add a file “ABC.txt” to the project (using any means to create the file), and the sidebar will display the file

  • Either using Reveal in Finder or command line, rename the file from “ABC.txt” to “abc.txt”

  • Sidebar still displays “ABC.txt”. Even forced refresh do not pick the changes

I have enabled case sensibility on my filesystem, so doing ls display the filename properly.

Could be that Python do not make distinction about this? Is quite common that OSX can work on both case sensitive or not FS, but some libraries or languages determine that at compilation time, not runtime.

Cheers!

0 Likes

#12

This is a really nice update.

I just wanted to say that ctrl+space now errors with: no available completions.
So the completions drop down never shows up.

ST2 2043 Win 7 x64 (portable version).

Thanks.

0 Likes

#13

[quote=“daylerees”]With the new file creation from sidebar, would it be possible to specify a filename when creating the file, so kind of :

Right click folder -> click new file -> type name of file within tree -> begin editing file.
[/quote]

I think the current solution is more powerful. You create a new file in a given folder and when you hit Ctrl+S you can save it in this folder (default) but you can still change the folder or abandon the new file altogether.

0 Likes

#14

Could this be optional? I’m already a huge fan of it showing the diff in a buffer, and I don’t auto-save on focus lost. :smile:

0 Likes

#15

[quote=“adzenith”]

Could this be optional? I’m already a huge fan of it showing the diff in a buffer, and I don’t auto-save on focus lost. :smile:[/quote]

I don’t like the output panel for diffs, too. What about changing the auto-save to only react on the window focus? This way you can leave it as is :smile:.

0 Likes

#16

I love the new diffing with highlighting! Having it built into the text editor is a nice feature.

I agree with this. Having a new buffer for diffs is preferred over the panel. I’m also a huge fan of the save on focus lost (thanks for adding it a few releases ago!), but having it only auto save on window focus lost would fix these other problems.

0 Likes

#17

I think, I’ve made up my mind. For my orgmode plugin the current auto save on view focus lost is great (due to the way I work with it e.g. switching between views and not windows). But for other files (html, css, js, php, py, c etc.), where I might use a diff before saving, it would matter when switching over to a console or browser (-> window focus lost). Can’t we have switches for both? :smiley:

0 Likes

#18

Sublime Text 2 is awesome text editor. Really love to check new release everyday:D

I meet serious bug on 2043 build.
I always open some windows, but 2043 can’t handle multiple window.
When type somethings on another window, the letters show up on the first window only.

steps

  1. open 1st window.(1st window)
  2. File -> New Window(2nd window)
  3. write on 2nd window -> the letters show up on 1st window.(bug)
  4. write on 1st window -> the letters show up on 1st window.(normal)
  5. close 2nd window -> write on 1st window -> crash…

I’m using Ubuntu 10.10. I didn’t check it on other platform.

Regards,

0 Likes

#19

Why can I only diff/delete files if they are in folders? I rarely use folders, I just use open files in my projects. Seems an odd limitation.

Also, once I’ve added a folder, I right-click on it to “remove folder” and nothing happens. I can’t figure out how to get rid of it. Bug?

0 Likes

#20

[quote=“theblacklion”]

I think, I’ve made up my mind. For my orgmode plugin the current auto save on view focus lost is great (due to the way I work with it e.g. switching between views and not windows). But for other files (html, css, js, php, py, c etc.), where I might use a diff before saving, it would matter when switching over to a console or browser (-> window focus lost). Can’t we have switches for both? :smiley:[/quote]

If you grab the text on disk before the file loses focus then you can save it and show the diff anyway. Seems like that might be cleaner than having a per-view setting or something.

0 Likes

#21
Also, once I've added a folder, I right-click on it to "remove folder" and nothing happens. I can't figure out how to get rid of it. Bug?

Yeah, I’m seeing this too. Win 7x64

0 Likes

#22

[quote=“atomi”]I just wanted to say that ctrl+space now errors with: no available completions.
So the completions drop down never shows up.[/quote]

Can you give some more information? Ctrl+Space is working fine for me.

0 Likes

#23

[quote=“aoi”]When type somethings on another window, the letters show up on the first window only.

steps

  1. open 1st window.(1st window)
  2. File -> New Window(2nd window)
  3. write on 2nd window -> the letters show up on 1st window.(bug)
  4. write on 1st window -> the letters show up on 1st window.(normal)
  5. close 2nd window -> write on 1st window -> crash…
    [/quote]

I’m not seeing this - when I create the second window, then the second window receives input focus, and I can type there as normal. I can click between windows and type in either, and closing the second window doesn’t not appear to cause a crash. Also testing on Ubuntu 10.10. This wasn’t happening for you on build 2042?

0 Likes

#24

[quote=“jps”]

[quote=“atomi”]I just wanted to say that ctrl+space now errors with: no available completions.
So the completions drop down never shows up.[/quote]

Can you give some more information? Ctrl+Space is working fine for me.[/quote]

I’m not sure what else to tell you. It’s just plain not working.

Step 1: unzip portable win x64 package.
Step 2: run sublime text
Step 3: open new file with .xml extension

And press ctrl+space - no completions dialogue.
I understand the ctrl+space should work without having entered any characters so if there is any other way I can help (by turning on some kind of debugging/logging) let me know.

0 Likes

#25

Ctrl+Space won’t show anything for an empty XML file. However, there does appear to be an issue in this circumstance:

aa
ab
|

(The pipe is where the cursor is). Pressing Ctrl+Space isn’t working here, but it should be - I’ll look into it. If you type an ‘a’ though, then Ctrl+Space will work fine.

0 Likes

#26

Hey i just registered to write down a small little bug i just found:

  1. Open Sublime with Double Vertical Pane Layout
  2. open 1 file on the left pane and multiple files on the right pane.
  3. I close all Files on the right pane with CTRL+W (i set this shortcut to “close files” because i was annoyed that it always exit the programm when i press it one more time than files are there)
  4. Switch back to Single Pane Layout (left pane should have still the one file open but no files open on the right pane)
  5. No Content is shown on this single view then. The file is marked as open but its empty. If i close the file and reopen it, the content is there.

I know, nothing dramatical, but maybe in another scenario this bug might be more heavier.

0 Likes

#27

ctrl+spacebar doesn’t seem to bring up the completions list if the prefix is an empty string. I think it used to in previous builds. Is this by design? I personally preferred the old behavior.

EDIT:

Nevermind, it’s my fault…

0 Likes