bollu / sublimeBookmark

a better bookmark system for SublimeText
Apache License 2.0
133 stars 30 forks source link

Scroll instead of UP - Down for Goto Bookmarks #58

Closed Max-Enrik closed 7 years ago

Max-Enrik commented 7 years ago

Hi, thanks for this great better bookmark system.

Is it possible replace Scrolls instead of UP - Down keys? Please let me know something, I am still researching about that.

Thanks for any informative comments.

gwenzek commented 7 years ago

I'm not sure I understood correctly so I'll I assume you want to use mousewheel to navigate through your bookmarks:

Create a file "Default (Linux).sublime-mousemap" in your Packages/User folder (replace Linux by your OS name). Put this inside:

[
    { "button": "scroll_down", "modifiers": ["ctrl"],
      "command": "sublime_bookmark", "args":{"type":"goto_next"} },
    { "button": "scroll_up", "modifiers": ["ctrl"],
      "command": "sublime_bookmark", "args":{"type":"goto_previous"} },
]

Here I added a modifier "ctrl" so you switch bookmark only on ctrl+wheel at the same time. Fell free to change it as you like or remove it.

Max-Enrik commented 7 years ago

You clearly understand me. All the best to you!