Home Download Buy Blog Forum Support

20080401 Beta

20080401 Beta

Postby jps on Tue Apr 01, 2008 5:23 am

New beta is out - mostly a collection of fixes and requested tweaks.

If you add the setting 'minimapMaxWidth' to application.sublime-options, then you can change the value from the current default of 175 (Note there was no pixel maximum width in previous versions, the algorithm for calculating the width has been changed).

Nick's plugin for line indentation detection is in there too, configurable via the file type option 'detectIndentation'. It's on by default. There's a new View/Indentation sub-menu to go with it.

There are a couple of new methods in the API: sublime.messageBox and sublime.questionBox.

Finally, there's now a system for packages to integrate into the menu: Create a *.package-menu file (Same syntax as the *.sublime-menu files) in the package directory, and it'll appear as a sub-menu under Tools/Packages. It'll likely move into a top level menu at some point, when it actually has some content.
jps
Site Admin
 
Posts: 3058
Joined: Wed Mar 19, 2008 12:33 pm

Re: 20080401 Beta

Postby myel on Tue Apr 01, 2008 7:16 pm

Thanks,

80px width is optimal for me.

What i want to do quite often is to click onto the minimap to jump to the clicked location, what do you and the others think about that?

Ah, can't wait for the project explorer
myel
 
Posts: 88
Joined: Sat Mar 22, 2008 11:26 pm

Re: 20080401 Beta

Postby jps on Tue Apr 01, 2008 11:49 pm

myel wrote:What i want to do quite often is to click onto the minimap to jump to the clicked location, what do you and the others think about that?


Back in pre-history, the minimap used to always show you the entire file. You could click anywhere on the minimap and be taken directly to that point - it was nice.

However, the problem with showing the entire file is that for even reasonably sized files, everything is so small you can't make out much of anything. This led to the current situation of the zoom cap and the minimap showing the portion of the buffer around the current view port.

This means that while the top of the orange viewport rectangle on the minimap reflects the current position wrt the buffer (i.e., when the rect is at the top of the screen, you're looking at the top of the buffer, and when it's at the bottom of the screen, you're looking at the bottom of the buffer), the surrounding text doesn't (i.e., when looking at the top of a sufficiently large file the text at the bottom of the minimap is not the text at the bottom of the buffer).

This means that if click-to-scroll was still implemented, I'd have to choose between one of two behaviours:
- The view is scrolled to the text in the minimap that you clicked on. This would result in the orange view port representation _not_ moving to where you click, which would likely be unexpected.
- The view port is scrolled to where you click. This would result in in the text you clicked on in the minimap _not_ being the text you now see in the main view, which would also be unexpected.

The end result is you can only drag the minimap view rectangle around.
jps
Site Admin
 
Posts: 3058
Joined: Wed Mar 19, 2008 12:33 pm

Re: 20080401 Beta

Postby SteveCooperOrg on Wed Apr 02, 2008 12:12 am

Thanks, Jon. The package downloader uses the new menu system, and the messagebox.
Maybe what you're looking for is at the http://www.sublimetextwiki.com
SteveCooperOrg
 
Posts: 193
Joined: Thu Mar 20, 2008 9:53 am

minimap and click

Postby vim on Mon Jun 02, 2008 7:43 am

regarding the minimap and click-to-scroll, why not centering the orange viewport rectangle where ever the user clicks. so if a user clicks on the minimap on a section that isn't inside the orange viewport rectangle, then the orange viewport rectangle centers around it, from there it is the same behavior as it is till now, if the user will drag his mouse the orange viewport rectangle will follow it.
vim
 
Posts: 298
Joined: Tue May 27, 2008 6:51 pm

Re: 20080401 Beta

Postby jps on Mon Jun 02, 2008 12:59 pm

As I mentioned above, that behavior is largely incompatible with the zoom cap on the minimap, it can't work in a consistent way unless the entire file is displayed at once.

Given the number of requests I've had for it though, I'll take a look at putting this functionality back in, and just put up with a bit of funny business on large files.
jps
Site Admin
 
Posts: 3058
Joined: Wed Mar 19, 2008 12:33 pm

Re: 20080401 Beta

Postby vim on Mon Jun 02, 2008 3:17 pm

oh, i read it again and now i get you :) but then again, i think a little funny behavior is better and more intuitive. btw, few more features, especially supporting user customization, and it could be the long waited vi replacement (and it's about time!)
vim
 
Posts: 298
Joined: Tue May 27, 2008 6:51 pm

Minimap click scrolling behavior

Postby patku on Thu Jul 05, 2012 5:13 pm

(This was the most relevant post I found, but please put it elsewhere if it makes more sense.)
I am disappointed in the behavior of clicking on the minimap. I expect that if I click in the minimap, the editor will show me an area which has the text I clicked on (and the minimap will be updated to reflect that current position). As it is (in Build 2210), clicking on the minimap does some sort of hybrid scrolling which results in not getting anywhere near where I want to go (for any file long enough that the minimap itself does not entirely fit in the window).

I don't know of the technical limitations present, but it seems that a good solution would do the following:
1. Wherever the user clicks in the minimap, make note of the text location (line number, etc).
2. Perform the same action as Goto Line so that the editor shows that text and the minimap updates.

The current behavior makes click-to-scroll unusable, which is extremely unfortunate (it's always my first instinct).

EDIT: I'm not alone:
patku
 
Posts: 3
Joined: Mon Jun 18, 2012 3:10 pm


Return to General Discussion

Who is online

Users browsing this forum: Exabot [Bot] and 17 guests

cron