-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sublime Text 4 folder collapsing bug #158
Comments
the workaround I found was to force a reload when you collapse. it's real heavy handed, but I haven't had the time to dig in deeper. index d12ca3d..3914c4b 100644
--- a/dired.py
+++ b/dired.py
@@ -582,6 +582,7 @@ class DiredFold(TextCommand, DiredBaseCommand):
Very important, in case of actual modification of view, set valid dired_index setting
see DiredRefreshCommand docs for details
'''
+
def run(self, edit, update=None, index=None):
'''
update
@@ -698,6 +699,7 @@ class DiredFold(TextCommand, DiredBaseCommand):
v.erase(edit, indented_region)
v.set_read_only(True)
emit_event(u'fold', (self.view.id(), self.index[start_line - 1]), view=self.view)
+ v.run_command('dired_refresh')
class DiredUpCommand(TextCommand, DiredBaseCommand): |
Why is this still needed in Sublime 4... I would ditch all other editors if they simply made the sidebar at least capable of switching sides... |
I believe this bug is fixed in gwenzek's fork of this repo. Working great for me. I was also getting disappearing entries when I press the left arrow key. The gwenzek fork fixes this for me. |
This is still better (faster) if you like to do everything by keyboard. |
I tried installing the fork but that didnt work for me, error saying cannot iterate over None object. I downloaded the zip file from repo and renamed it with FileBrowser.sublime-package and added it in my Packages folder. |
i just did
|
i still run into the same collapse of the folder . so i just combine dired_floder/dired_expand and dired_refresh this two command , it work fine for me. here is the example:
and use this chian command need install chain of command in (st2 or st3), |
Fix is in #165 |
I'm not sure the best way to describe it, so i've set up an example and captured screenshots. This is with sublime build 4107, and i've ensured that SublimeFileBrowser is up to date.
example folders expanded:
then if I collapse folder
bravo_one
, Notice the doubled up carrots next to that folder.then if I do a refresh (
r
hotkey):The text was updated successfully, but these errors were encountered: