ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Sublime Bookmarks

by bollu ST2/ST3

a better bookmark system for SublimeText

Details

Installs

  • Total 2K
  • Win 824
  • OS X 588
  • Linux 339
Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5 Mar 4 Mar 3 Mar 2
Windows 5 6 5 7 2 9 9 11 6 6 3 4 14 10 14 6 9 3 2 9 8 14 9 6 4 4 9 6 12 8 10 9 9 17 14 5 11 8 4 3 4 7 19 7 4 5
OS X 3 7 5 2 3 5 1 6 4 2 4 2 5 10 4 4 2 0 3 9 10 4 12 4 3 5 4 10 6 6 8 2 1 7 4 8 8 4 3 3 4 8 3 9 5 1
Linux 4 3 7 2 1 4 1 3 3 5 1 0 3 8 8 4 1 3 1 0 3 1 2 5 3 0 4 3 8 6 6 2 3 4 5 2 5 1 0 0 2 0 3 1 4 0

Readme

Source
raw.​github.​com

SublimeBookmark

a better bookmark system for SublimeText

demo gif

Motivation

Let's face it: sublime text's bookmark system sucks.
<rant>
It doesn't support named bookmarks. It doesn't save bookmark statuses, and it is just terrible to use overall.
</rant>.

This is a replacement for sublime text's bookmark functionality. It's slicker and easier to use, and has way more features.

Note: As of now, This is only for Sublime Text 3. False! It's been ported. Unfortunately, I havent' implement live preview and project based bookmark sorting. I'm not sure how to port these features over to Sublime Text 2. If someone knows, please do contact me!

Features

  • Named bookmarks
  • Bookmarks are saved across sessions
  • Goto any bookmark in the project
  • Add any number of bookmarks (not just 12).
  • Project based bookmarks (bookmarks are stored per-project and bookmarks can be navigated on a per-project basis) (Only for ST3)

To Install

With the Package Control plugin: The easiest way to install SublimeBookmarks is through Package Control, which can be found at this site: http://wbond.net/sublime_packages/package_control

Once you install Package Control, restart Sublime Text and bring up the Command Palette (Command+Shift+P on OS X, Control+Shift+P on Linux/Windows). Select “Package Control: Install Package”, wait while Package Control fetches the latest package list, then select SublimeBookmarks when the list appears. The advantage of using this method is that Package Control will automatically keep SublimeBookmarks up to date with the latest version.

Without Git: Download the latest source from GitHub <https://github.com/bollu/SublimeBookmark/tree/st3> and copy the whole directory into the Packages directory.

With Git: Clone the repository in your Sublime Text Packages directory, located somewhere in user's “Home” directory::

git clone -b st3 https://github.com/bollu/sublimeBookmark.git

To Use

Adding Bookmarks

Go to a line you wish to bookmark. Press ctrl + shift + P on Windows / Linux or cmd + shift + P on Mac and type SublimeBookmarks:Add Bookmark. This opens up a panel where you can type the name of your bookmark. Once you're done naming your shiny new bookmark, hit Enter. You should see a tiny yellow triangle next to your line. you're done!

Accessing Bookmarks

Press ctrl + shift + P on Windows / Linux or cmd + shift + P on Mac and select SublimeBookmarks:Goto Bookmark. This will bring up a list of all bookmarks. Type in the bookmark name you want to go to and press Enter to go to the bookmark

Removing Bookmarks

Press ctrl + shift + P on Windows / Linux or cmd + shift + P on Mac and select Remove Bookmark. Type the name of the bookmark you want to remove and press Enter. This will remove the bookmark

To remove all bookmarks, select the option SublimeBookmarks:Remove All Bookmarks (Clear Bookmarks). This will clear all bookmarks. This can not be undone.

Visibility Modes:

SublimeBookmarks has 3 visibility modes associated with it:

1) View all Bookmarks

This mode shows all bookmarks that have been created - irrespective of project or file information.

To use this mode, Press ctrl + shift + P on Windows / Linux or cmd + shift + P on Mac and select SublimeBookmarks:Show All Bookmarks

This will show all bookmarks created

2) View only Project Bookmarks

This mode only shows bookmarksthat belong to the current project - it will not show other bookmarks at all

Press ctrl + shift + P on Windows / Linux or cmd + shift + P on Mac and select SublimeBookmarks:Show Only Bookmarks In Current Project

This will only show bookmarks that belong to the current project.

2) View only current file Bookmarks

This mode only shows bookmark that are present in the current file.

Press ctrl + shift + P on Windows / Linux or cmd + shift + P on Mac and select SublimeBookmarks:Show Only Bookmarks In Current File

This will only show bookmarks that belong to the current project.

Notes / Addendum

Some TODO Stuff:

  • Port to Sublime Text 2 (This is partially done. Unfortunately, I'm not able to implement live previews and project support. I don't really know how to port these to ST2. If someone does, please do contact me! )
  • Add an option to only show bookmarks belonging to current project (Nope, it now fully supports project-based bookmark management!)

To Help

Just fork my repo and send a pull request. I'll gladly accept :)

I've spent quite some time writing this and making it bug-free. It would really help me if you'd chip in a little something :) I'm a student, so a little goes a long way.

Support via Gittip