zk-phi / sublimity

Smooth-scrolling and minimap like sublime editor
496 stars 26 forks source link

suggestions add the following functions #3

Open shelper opened 11 years ago

shelper commented 11 years ago
  1. configurable font size for the minimap
  2. clickable minimap to jump to the position clicked
  3. option disable minimap when idling, e.g, (sublimity-map-set-delay 0) thanks
zk-phi commented 11 years ago

Thanks for comments.

i. configurable font size for the minimap

fixed sublimity-map-setup-hook. now you may change font size with this hook.

(add-hook 'sublimity-map-setup-hook (lambda () (text-scale-set -3)))

ii. clickable minimap to jump to the position clicked

I have never implemented a command that uses mouse butons, so for now it is somewhat challenging for me. if you can implement it, i will be happy to pull it. otherwise, I will implement someday, when I get some time off. thanks.

iii. option disable minimap when idling

now sublimity-map-set-delay can take "'inf" as the argument. you can pass "'inf" to cancel the idle-timer.

(sublimity-map-set-delay 'inf)
prvteprts commented 11 years ago

In relation to Item 3, the minimap shows up when idling even if sublimity-mode is disabled. I fixed it and sent a pull request.

zk-phi commented 11 years ago

@prvteprts fixed. thanks for reports.