+6

single click behavior on file in "Side Bar"

Parrish 6 years ago • updated by faithbot 1 year ago 5
When sigle-clicking on a file in the "Side Bar" the file opens for preview?  Unfortunately, the visual queues for this action are confusing... a file is viewed in the editor without a tab, yet the first edit to the file creates a new tab for the file.  It would be nice to have some other visual queue to accomplish this... i.e. a window that hovers over the edit window, with an edit button on it; gray out all tabs when previewing a file, with a click on a tab closing the preview and selecting the tab; or simply have a setting to allow a single click to do nothing.
Against, or at least should be configurable. I enjoy the "preview" mode immensely, and use it constantly — it is often useful to glance over a file without it polluting the tab bar, and if any change is needed the transition from "preview" to "editing" is very unobtrusive.
It would be great to be able to configure this as an option. The biggest problem I have with the single-click preview is that if you have multiple documents open in tabs, then go to right-click on a file in the Side Bar, the focused tab is lost so you have to then locate the document you were previously working on again. It's not a problem with only 2-3 files open, but when you're jumping between 7+ it's annoying to lose that tab focus constantly when you're just trying to copy a file name or directory structure.

Isn’t this controlled by this setting nowadays?

 // Preview file contents when clicking on a file in the side bar. Double

  // clicking or editing the preview will open the file and assign it a tab.

  "preview_on_click": true,


+9

Would be nice if this existing setting could be used for it:

// Preview file contents when clicking on a file in the side bar. Double

  // clicking or editing the preview will open the file and assign it a tab.

  "preview_on_click": true

When set to false, it could enable the single-click-opens-the-file behavior.

"preview_on_click": false

just disables the preview, still have to double click to open the file to open it