Home Download Buy Blog Forum Support

[Feature] Option to autoReload all files in reload dialog

[Feature] Option to autoReload all files in reload dialog

Postby edanm on Thu May 13, 2010 5:36 pm

When a file is changed outside of Sublime, you get a prompt asking whether you'd like to reload the file.
There's also "autoReloadChanged" option, which always you to always reload files.

I'd like a simple check-box in the Reload dialog, asking whether to automatically reload all files from disk.
This is because I don't want to always autoReload, but a lot of the time, especially when checking out new version from version control, I do want to reload all the files.
edanm
 
Posts: 131
Joined: Thu Mar 04, 2010 11:05 pm

Re: [Feature] Option to autoReload all files in reload dialog

Postby guillermooo on Thu May 13, 2010 6:59 pm

Hey, edanm.

A plugin seems to be the right way to go about this.

Generally, I'm against overloading the UI and custom behavior is better dealt with through plugins anyway.

If I've understood correctly, your desired functionality is trivial to code; roughly:

Code: Select all
myFiles = get open files' names
close all open files
for each file in myFiles
    create new view
    open file


Now I know nearly all (if not all?) options can be found in the option files. I don't like the prospect of a redundant UI.
guillermooo
 
Posts: 728
Joined: Thu Jul 23, 2009 9:06 am

Re: [Feature] Option to autoReload all files in reload dialog

Postby guillermooo on Thu May 13, 2010 7:03 pm

On a related note, check out the SublimeModelines plugin. It will let you set options local to a particular file/buffer.
guillermooo
 
Posts: 728
Joined: Thu Jul 23, 2009 9:06 am

Re: [Feature] Option to autoReload all files in reload dialog

Postby edanm on Thu May 13, 2010 7:47 pm

Hey,

First of all, I actually don't like relying on plugins too much. My theory is that the editor should come with all the functionality you're likely to want "out of the box", and unless I'm completely mistaken, this seems like something pretty basic which other people will want

Anyways, I'm not sure I properly explained what I was talking about. So just in case, I've added a screenshot showing the current dialog, and a screenshot showing what I'd like to be available:

As it is today:
Image

Modified:
Image


It's not redundant at all, it fits exactly for people who sometimes want to not reload the files, sometimes want to reload their whole project, and sometimes just reload one file.
edanm
 
Posts: 131
Joined: Thu Mar 04, 2010 11:05 pm

Re: [Feature] Option to autoReload all files in reload dialog

Postby edanm on Thu May 13, 2010 7:49 pm

Oh and by the way, where can I find the Modelines plugin? I don't see it on the wiki.
edanm
 
Posts: 131
Joined: Thu Mar 04, 2010 11:05 pm

Re: [Feature] Option to autoReload all files in reload dialog

Postby guillermooo on Thu May 13, 2010 8:45 pm

Ok, now I understand. Yes, that seems to be more generally useful, but still doable with a plugin. I also try to keep the number of plugins I use to a minimum, and I think some sort of facility to selectively disable them is needed.

But modal dialogs look so damn prehistoric! :)
guillermooo
 
Posts: 728
Joined: Thu Jul 23, 2009 9:06 am

Re: [Feature] Option to autoReload all files in reload dialog

Postby guillermooo on Thu May 13, 2010 8:49 pm

Oh, yeah, and regarding plugins/packages, not all of them are listed in the Wiki... Having all of them scattered in different places is a huge PITA. Personally, the ones I've authored are all hosted in Bitbucket.
guillermooo
 
Posts: 728
Joined: Thu Jul 23, 2009 9:06 am

Re: [Feature] Option to autoReload all files in reload dialog

Postby GreyWyvern on Thu May 13, 2010 9:22 pm

I think this would be useful, especially for editing large projects, and you do a CVS update and a bunch of files get changed at once. But IMHO, we should keep with the OS integration and instead of "Reload all files", display buttons with text "Yes to all" and "No to all" if Sublime Text detects that more than one buffer has been updated outside the program.
GreyWyvern
 
Posts: 106
Joined: Fri Oct 23, 2009 7:08 pm
Location: Canadia

Re: [Feature] Option to autoReload all files in reload dialog

Postby adzenith on Mon Nov 15, 2010 11:21 pm

Just wanted to throw out there that I also would really like to see this implemented.

Another thing: when a file is reloaded through this dialog, all of its bookmarks are moved to the first line. It would be very nice if they could stay at the same line (by analyzing the file) or even just the same line number, because it's usually close enough.
adzenith
 
Posts: 1215
Joined: Mon Oct 19, 2009 9:12 pm


Return to Ideas and Feature Requests

Who is online

Users browsing this forum: No registered users and 9 guests