aziz / SublimeFileBrowser

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

Can't make "single column" layout the default #137

Closed marawan-nwh closed 7 years ago

marawan-nwh commented 7 years ago

It always opens files in another two columns layout, how to stop that?

vovkkk commented 7 years ago

You can press ⌘+enter or ctrl+enter or rebind it to enter in user keybindings file adding:

  {
      "keys": ["enter"],
      "command": "dired_select",
      "args": { "new_view": true },
      "context": [
        { "key": "selector", "operator": "equal", "operand": "text.dired" },
        { "key": "setting.dired_rename_mode", "operand": false }
      ]
}
marawan-nwh commented 7 years ago

Thanks, works very well. Can i do this with double click?

vovkkk commented 7 years ago

You can create your own plugin with unique command which would call select without other_group argument like this https://github.com/aziz/SublimeFileBrowser/blob/master/dired.py#L808-L830 and bind double click to this new command in Packages/User/Default.sublime-mousemap like this https://github.com/aziz/SublimeFileBrowser/blob/master/Default.sublime-mousemap

BTW, new_view argument in my prev message is not needed, remove it if do not want to open each folder in separate view.