Home Download Buy Blog Forum Support

File previewing in Sublime Text 3

Re: File previewing in Sublime Text 3

Postby valeryan on Fri Jan 24, 2014 7:47 pm

I would like to add that if you have an entry in your sidebar menu for deleting files and you right click on a file also opens it in a preview tab. Then when you delete the file and confirm that you want it deleted the preview tab does not close. You then have to close it and go through the "close without saving" dialog. Deleting a file is very difficult with the preview function turned on. Maybe that will be better for some people :o because it help prevent accidental deletes but I find it to be slightly annoying. So, I had to turn file previews off even-though I really like the preview function.

I don't always delete files but when I do I delete them all.

ST3:3059 on Linux
valeryan
 
Posts: 1
Joined: Fri Jan 24, 2014 7:30 pm

Re: File previewing in Sublime Text 3

Postby ntenney on Thu Jan 30, 2014 5:35 pm

OK, so here's my take on the file preview. I like the st3 way of doing it better than the st2 way. With st2, it could get confusing because if you had a file open for editing, and clicked on a file to preview, it looked (at least with some themes) that the file you were previewing was a file opened for editing, and named the same as the file you had been editing. But, I think that it should be more apparent that the file being previewed in st3 is in preview mode, and as has been mentioned, if I navigate away from the tab, it should close automatically. In other words, preview should not be functionally equivalent to opening the file for editing, or there shouldn't be a preview mode at all.
ntenney
 
Posts: 70
Joined: Thu May 03, 2012 9:10 pm

Re: File previewing in Sublime Text 3

Postby bayxsonic on Thu Apr 10, 2014 4:32 pm

This definitely needs to be an option.
Every time I preview a build file, change tab and build again, ST3 actually opens the file and keeps it open, for no reason. I always end up with a lot of tabs that I never opened
bayxsonic
 
Posts: 2
Joined: Thu Apr 10, 2014 4:18 pm

Re: File previewing in Sublime Text 3

Postby fgimian on Sun Jun 22, 2014 10:01 am

This is probably my biggest issue with ST3 right now. I believe that this is definitely a bug because when previewing files using Goto Anything, ST3 behaves exactly as ST2 did. But when using the sidebar, a tab is opened.

I really hope that this is either reverted or a setting is provided to switch this behaviour off.
fgimian
 
Posts: 3
Joined: Thu Jan 31, 2013 10:56 am

Re: File previewing in Sublime Text 3

Postby sammy on Wed Jul 09, 2014 1:38 am

I would like ST2 behavior back as well! I don't use tabs at all, and it's annoying having Cmd+Opt+(left/right arrow) toggle between files that aren't even visible in the "Open Files" view (I only use this view instead of tabs, because tabs are for noobs).
sammy
 
Posts: 10
Joined: Wed Mar 07, 2012 9:40 pm

Re: File previewing in Sublime Text 3

Postby mikem836 on Mon Mar 02, 2015 9:12 am

Now that we have some activity again, I'd like to revive this thread. Although I've tried several times to use ST3 and adjust to the new behavior, after a couple days of frustration, I find myself back on ST2 because of this feature alone. I like the preview feature and don't want to turn it off altogether. However, some themes don't even italicize the tab title, so the preview tab is indistinguishable from a regular (open for editing) tab. And regardless, I don't want the preview to stay open after I navigate away. I know some people like the ST3 behavior, so please it can just be an option.
mikem836
 
Posts: 2
Joined: Mon Mar 02, 2015 8:45 am

Re: File previewing in Sublime Text 3

Postby sitnikovme on Wed Apr 01, 2015 11:05 pm

I vote up for making this an option.
sitnikovme
 
Posts: 1
Joined: Fri Jan 30, 2015 5:23 pm

Re: File previewing in Sublime Text 3

Postby krur on Tue Apr 07, 2015 3:58 am

sitnikovme wrote:I vote up for making this an option.


what's the option now?
ST3 (i'm usign 3082 but i'ts been for a while) does work perfect now:
"preview_on_click": true/false
let you preview or not the files. they don't get openend in preview (the bug i started this thread with)

please add details to your current problem otherwise it'll be hard for the developers to understand!
ciao
KRUR studio
using Sublime Text for developing knowledge, interaction, sense, and fun
krur
 
Posts: 19
Joined: Fri Nov 09, 2012 6:25 am
Location: earth.italy.florence.hills

Re: File previewing in Sublime Text 3

Postby mikem836 on Tue Apr 07, 2015 9:52 am

krur wrote:what's the option now?
ST3 (i'm usign 3082 but i'ts been for a while) does work perfect now:
"preview_on_click": true/false
let you preview or not the files. they don't get openend in preview (the bug i started this thread with)


You're right that, at least for me, it's a different problem than your original (sorry, I see now this thread got hijacked about halfway through). As several people described above, the issue is the way tabs are handled when previewing. Say you have three tabs open by double-clicking (Tabs [1]-[2]-[3]). You're on tab 1 and then you preview a file, it opens the preview tab to the right of tab 1, so now you have Tabs [1]-[Preview]-[2]-[3]. Then you click on tab 2, the preview tab stays open in the tab bar. Then say you preview another file - it moves the preview tab to the right of tab 2 (Tabs [1]-[2]-[Preview]-[3]).

It's this behavior that I find inconsistent for the following reasons:

1. The preview tab stays open when you click on another tab. That makes a tenuous distinction between a preview and an opened file.
2. Since the preview opens to the right of your current tab, the location of the preview jumps around if you click between open tabs and previewing.
3. Depending on the theme, the italics that distinguish the preview tab are more or less subtle, so it's not always clear which tab is the preview.

In Sublime Text 2, previewing files did not open a display tab, but just replaced the content pane with the previewed file (and deselected the active tab). I actually prefer that behavior, but since some people prefer the new behavior, that's where an option would help. Not an option to turn previewing on/off because like you say that already exists, but rather an option to display/don't display a tab for the preview (or maybe at least an option to close preview after clicking another tab).
mikem836
 
Posts: 2
Joined: Mon Mar 02, 2015 8:45 am

Re: File previewing in Sublime Text 3

Postby krur on Thu Apr 09, 2015 8:34 am

ah ok.. i agree.. the "preview tab" can be improved..
maybe we should open a new thread otherwise jps won't notice all these posts!

ciao!
KRUR studio
using Sublime Text for developing knowledge, interaction, sense, and fun
krur
 
Posts: 19
Joined: Fri Nov 09, 2012 6:25 am
Location: earth.italy.florence.hills

PreviousNext

Return to General Discussion

Who is online

Users browsing this forum: livetv117 and 26 guests