Home Download Buy Blog Forum Support

Request to allow disabling of "Preview Tab/View"

Re: Request to allow disabling of "Preview Tab/View"

Postby bizoo on Wed Apr 04, 2012 3:18 pm

tito wrote:https://twitter.com/#!/xubz/status/181829294807449600

tito wrote:Very frustrating this issue/feature, I need to close the editor many times in a day. Please do something.

Welcome back !!! ;)
bizoo
 
Posts: 859
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: Request to allow disabling of "Preview Tab/View"

Postby quarnster on Wed Apr 04, 2012 4:22 pm

Would something like this work for you?

Code: Select all
import sublime
import sublime_plugin


class ClosePreview(sublime_plugin.EventListener):
    def __init__(self):
        super(sublime_plugin.EventListener, ClosePreview).__init__(self)
        self.last_activated = None

    def on_load(self, view):
        if self.last_activated != None and view.file_name() != self.last_activated:
            sublime.active_window().open_file(self.last_activated)

    def on_activated(self, view):
        fn = view.file_name()
        if fn != None:
            self.last_activated = fn

    def on_close(self, view):
        if view.file_name() == self.last_activated:
            self.last_activated = None
quarnster
 
Posts: 389
Joined: Tue Nov 29, 2011 11:34 am

Re: Request to allow disabling of "Preview Tab/View"

Postby tito on Wed Apr 04, 2012 6:15 pm

Thank you very much for trying, but this is not working.

We need from jon to Please remove the preview caused from clicks on sidebar tree, both from left and right clicks.
Give APIs, let the community build the rest!
https://github.com/titoBouzout
tito
 
Posts: 706
Joined: Thu Sep 29, 2011 2:27 pm
Location: Montevideo, Uruguay

Re: Request to allow disabling of "Preview Tab/View"

Postby tito on Tue Apr 10, 2012 5:35 pm

I considering quitting from this editor and community. This is the most disruptive behaviour I have seen in a software.
Give APIs, let the community build the rest!
https://github.com/titoBouzout
tito
 
Posts: 706
Joined: Thu Sep 29, 2011 2:27 pm
Location: Montevideo, Uruguay

Re: Request to allow disabling of "Preview Tab/View"

Postby C0D312 on Tue Apr 10, 2012 10:10 pm

tito wrote:I considering quitting from this editor and community. This is the most disruptive behaviour I have seen in a software.

:( don't leave... we'll miss you
C0D312
 
Posts: 1063
Joined: Sun Jul 10, 2011 3:23 am

Re: Request to allow disabling of "Preview Tab"

Postby jps on Wed Apr 11, 2012 7:56 am

tito wrote:Sometimes the files that I right-click start loading and I can't use any function of my plugins because the file is locked by the editor.

What functionality doesn't work for you while a file is being loaded, is it just delete and rename?
jps
Site Admin
 
Posts: 3058
Joined: Wed Mar 19, 2008 12:33 pm

Re: Request to allow disabling of "Preview Tab/View"

Postby bizoo on Wed Apr 11, 2012 10:13 am

tito wrote:Thank you very much for trying, but this is not working.

We need from jon to Please remove the preview caused from clicks on sidebar tree, both from left and right clicks.

I don't want the preview to be disabled !!! It's a great feature, maybe disturbing at first but very useful after.

Maybe I'm the only one here, but I don't need (and don't want) my text editor to be a file manager (my OS as already one) or a complete version control manager.
IMHO, you try to use sidebar for something that it was not intended for.
bizoo
 
Posts: 859
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: Request to allow disabling of "Preview Tab/View"

Postby nick. on Wed Apr 11, 2012 1:35 pm

I think tito just wants an option to disable it. Seems reasonable -- any user-facing feature should be toggle-able, IMO.
nick.
 
Posts: 266
Joined: Wed Jan 18, 2012 3:45 am

Re: Request to allow disabling of "Preview Tab/View"

Postby tito on Wed Apr 11, 2012 3:39 pm

Yes, just an option to disable it. The ability to disable the feature from the clicks on sidebar would be enough.

What functionality doesn't work for you while a file is being loaded, is it just delete and rename?


I can't delete/rename or use git/hg/svn or any other useful function provided by a package while a file is loading. This is expected behaviour if were opening the file. But I never opened the file. I clicked or selected it.
Think of right click revert/checkout to/cut/paste. CTRL+ Click, click, click cut/paste. This is not possible with some files at the moment.

The other unacceptable problem of this feature is that makes me lose focus of the current tab on every click.
Give APIs, let the community build the rest!
https://github.com/titoBouzout
tito
 
Posts: 706
Joined: Thu Sep 29, 2011 2:27 pm
Location: Montevideo, Uruguay

Re: Request to allow disabling of "Preview Tab/View"

Postby hced on Mon Apr 16, 2012 2:14 pm

FWIW, here's another formal request to make the sidebar's preview-on-click functionality optional.
hced
 
Posts: 18
Joined: Sat May 14, 2011 3:32 pm

PreviousNext

Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot], Yahoo [Bot] and 22 guests

cron