Hmmā¦ auto-save and show unsaved changes kind of bite each other. Auto-save is being triggered on_deactivated which the diff invokes. Any idea for a workaround?
Btwā¦ love it
Hmmā¦ auto-save and show unsaved changes kind of bite each other. Auto-save is being triggered on_deactivated which the diff invokes. Any idea for a workaround?
Btwā¦ love it
Thanks, Iāll look into it
[quote=āekolguyā]
Show unsaved changes sometimes works, sometimes does not. I could not figure out the exact reason, but in my tests this action on my local_settings.py.example file works (opens a diff file) while on the similar file, settings.py does not (opens an empty diff file)
I cannot figure out how Diff already opened files as multiple file selection and right click is not available there. Does it mean we can only diff files that are not yet opened (via file browser) ?
New file context menu does not actually create a file. It creates a new buffer ready to be saved in given directory. Is this the way it supposed to function? What will happen if you add New folder context menu?[/quote]
Itāll show an empty buffer if thereās no difference between the current file and the on disk one. Iāll change it to emit a status message in this scenario instead.
Iām planning to make open files still selectable in the folder area, which will resolve this issue
New File is working the way itās supposed to, yeah. My personal feeling is that this is a better option than prompting for a filename and creating something on disk immediately. New Folder will just prompt though.
Iāll make the unsaved changes show up in an output panel instead, which is a better thing to do, and will go some way to resolving this issue, as long as you donāt click in the output panel, anyway
What does Diff highlighting do exactly?
Now that new file/folder/delete is on the sidebar, can we please get rename?
Iām excited to see what kind of plugins will arise from this new extensibility ā context menus!
[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.
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
[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ā¦
[quote=ājpsā]
Iāve been working on menus for this build, you can see this in a few areas:
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!
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.
[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.
Iāll make the unsaved changes show up in an output panel instead, which is a better thing to do, and will go some way to resolving this issue, as long as you donāt click in the output panel, anyway
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.
[quote=āadzenithā]
Iāll make the unsaved changes show up in an output panel instead, which is a better thing to do, and will go some way to resolving this issue, as long as you donāt click in the output panel, anyway
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. [/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 .
I love the new diffing with highlighting! Having it built into the text editor is a nice feature.
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 .
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.
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.
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?
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
Iām using Ubuntu 10.10. I didnāt check it on other platform.
Regards,
- 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)
- Right click with two files selected in the side bar, and you can diff them
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?
[quote=ātheblacklionā]
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.
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? [/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.
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
[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=āaoiā]When type somethings on another window, the letters show up on the first window only.
steps
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?