aziz / SublimeFileBrowser

Ditch sidebar and browse your files in a normal tab with keyboard, like a pro!
MIT License
395 stars 45 forks source link

Make FileBrowser tab unclosable #98

Open Ch00k opened 8 years ago

Ch00k commented 8 years ago

Sometimes I accidentally close the FileBrowser tab by hitting Command+W while being focused on its tab instead of on the actual editor tab I intend to close. Would be nice to have an option to make the FileBrowser tab "unclosable" (i.e. sticky/protected). UPD TabsExtra plugin implements just that but still it would be nice to integrate the feature into FileBrowser.

vovkkk commented 8 years ago

Meh, if there is plugin already, then what’s the point to duplicate functionality, esp. unrelated to filemanagment one?

brokenalarms commented 8 years ago

Pressing Command+W whilst using TabsExtra and Sticky Tabs selected still closes the File Browser tab. I came to this issue whilst looking for a solution myself. +1

vovkkk commented 8 years ago

You can disable keys in your user keybindings file:

{ "keys": ["super+w"], "command": "noop",
  "context": [{ "key": "selector", "operator": "equal", "operand": "text.dired" }]
}
brokenalarms commented 8 years ago

huh, why thank you!