Sublime Forum

File previewing in Sublime Text 3

#1

in 2.0, when browsing files of a project, if you click a filename it is previewed in the content pane. when double clicks, it opens and it’s added to the top o the sidebar. good.

in 3.0 it happens the same BUT the filename is added to the top of the sidebar at the first click (on previews).
with the terrible effect that if you double click a file to open it, you always end up opening the file above it ! (the first click insert the file name at the top, the list goes down, the second click opens the other file)

the only solution is to activate “View->Side Bar->Hide Open Files” … but why?

please!

thanks

stefano

0 Likes

Sublime Text 3 Single Click Preview Tab
ST3: Single-click in sidebar opens files?
#2

This is a pretty annoying feature/bug for me as well. Any word on why this was changed and will it be fixed in a future release?

Thanks!

0 Likes

#3

It’s only habit, you should get used to single click for better productivity :wink:

0 Likes

#4

Hi Enzy

well i tried to start editing files when in preview mode… after just one click in the sidebar…
i could live with it… anyway it’s an odd behaviour that a double click on an item opens another item :smile:

0 Likes

#5

I have the same issue with this. I always end up opening the wrong file with a double-click.

0 Likes

#6

Maybe Jon is teaching us that the right way to open a file is ctrl+p…

0 Likes

#7

i solved this issue with this option:

“preview_on_click”: false

1 Like

#8

[quote=“krur”]i solved this issue with this option:

“preview_on_click”: false[/quote]

The thing is, people do want the preview functionality.

0 Likes

#9

Is there a way to turn off the opening part of single click previewing in ST3?

I’m a big fan of single click to preview, double click to open.

0 Likes

#10

I am using ST3 (build 3047) and when I single click, it previews the file but doesn’t adds it to the Open Files list, it only does it with a double click. I have “preview_on_click” set to true.

0 Likes

#11

Still same behaviour in 3055… single click open tab aswell…

0 Likes

#12

In the latest builds the original issue doesn’t seem to be present, single clicking showing file immediately in the open file list.

If you don’t want a new tab, aka preview tab, adjust your preferences as described earlier in this thread…

0 Likes

#13

I don’t see any problem:

  • single click unopened file under “folders” opens a preview tab (filename in italics). Preview tab always appears next to current tab. No entries appear under “open files” or “groups”.
  • double click the file and it is opened; an entry is inserted into “open files” or “groups” and everything moves down 1 line, if that section is visible. If not, nothing moves except the scrollbar :smile:

Behaviour is much as ST2, at least for me on Windows. The only difference is the “preview tab”. Imo that’s much better than ST2 where previews take the place of the current tab and visually things are not always clear.

0 Likes

#14

yes, the issue has been resolved in some ST3 release (i couldn’t track it)

this issue can be closed!, thank you Jon

0 Likes

#15

I could agree with you, but this behaviour is actually inconsistent, and this is why (imho of course):
say, you have 3 file already opened, at a certain point of your workflow you preview a 4th file, in the tablist a 4th tab pops up, but when you jump to one of the other 3 files (say, the previewed one was useless for your workflow), even you didn’t edit it… it remains in tablist and this from a ux point of view is totally counterintuitive and worng…

0 Likes

#16

[quote=“Orlmente”]I could agree with you, but this behaviour is actually inconsistent, and this is why (imho of course):
say, you have 3 file already opened, at a certain point of your workflow you preview a 4th file, in the tablist a 4th tab pops up, but when you jump to one of the other 3 files (say, the previewed one was useless for your workflow), even you didn’t edit it… it remains in tablist and this from a ux point of view is totally counterintuitive and worng…[/quote]

OK, I didn’t understand your description to begin with, I but I think I see what you’re getting at now. You have 3 files opened using double click (they’re open for editing). You single click a 4th to preview it. You decide you didn’t want to work in that file, so you navigate to one of the 3 you already have open, and the 4th one (the preview tab) remains open. You would like to see it go away when it is no longer the active tab.

0 Likes

#17

Exactly ntenney,
is useless to keep that file open in tabs, there’s double click for that… more, even the comment in the default sublime-settings states that only double click will open the file and assign a tab for it:

that’s said, this should be considered a bug and not a feature…

0 Likes

#18

I actually like the new behaviour. I can navigate away to another file and come back to the preview which is useful in my workflow. But I think that it’s trivial to make everyone happy in this regard; A config option “close_inactive_preview_tabs” :smile:

0 Likes

#19

+1 for Orlmente’s sentiment:

[quote=“Orlmente”]Exactly ntenney,
is useless to keep that file open in tabs, there’s double click for that… more, even the comment in the default sublime-settings states that only double click will open the file and assign a tab for it:

that’s said, this should be considered a bug and not a feature…[/quote]

I would like to see Sublime Text 3’s file preview behave the same way as Sublime Text 2, just with the addition of Sublime Text 3’s “new tab on preview” concept.

0 Likes

#20

I agree with Orlmente.

Previewing files should not open a physical tab in my point of view, because it’s previewing, and previewed files are not intended to stay opened.

I’d like an option to choose this behaviour.

0 Likes