Skip to content
This repository has been archived by the owner on Jan 14, 2019. It is now read-only.

prevent 'scroll to top' on filesystem modification #34

Open
iandennismiller opened this issue Dec 10, 2010 · 2 comments
Open

prevent 'scroll to top' on filesystem modification #34

iandennismiller opened this issue Dec 10, 2010 · 2 comments

Comments

@iandennismiller
Copy link

Each time a file in a project is modified, the project drawer scrolls to the top when textmate loses and then receives focus.

I am hopeful that this plugin can hook the redraw function and prevent this behaviour. I would like the scrollbar to stay where it is, irrespective of whether or not textmate has or is receiving focus, and irrespective of any filesystem changes that occur within the project path.

To replicate:

  1. ensure your project drawer has enough items in it such that the scrollbar is visible
  2. scroll to the bottom of the drawer
  3. switch focus to a non-textmate application and create a new file in your project, e.g.:
  4. touch project_is_modified.txt
  5. switch focus back to textmate
  6. observe the drawer as it scrolls to the top

This is annoying default behaviour in textmate, but your plugin shows great promise... and I am hopeful that you can alter the default scrolling behaviour. Thanks!

@mlr
Copy link

mlr commented Sep 16, 2011

+1 for this. I would also like to add:

Given you have a sufficiently long scrollbar for your drawer and you have multiple files open for your project, once you close a tab the drawer places focus on the file of tab that has taken focus. The effect is your drawer auto scrolls, depending on which file has taken over focus.

This is extremely annoying when you have a large project and your drawer auto scrolls, forcing you to re-find the folder you were working in.

@rceee
Copy link

rceee commented Jun 12, 2013

+1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants