Git Product home page Git Product logo

sublimebookmark's Introduction

SublimeBookmark [UNMAINTAINED]

a better bookmark system for SublimeText

demo gif

Unmaintained

Unfortunately, being a college student doesn't leave me with time to fix the bugs that people seem to be having with this codebase. I do wish to rewrite this, since this was written when I was new to python. If anyone wishes to either

  1. Take ownership of the package
  2. Help me rewrite this

Please do ping me, help is very appreciated :)

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!d

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. The default mode is option 2.

###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 file.

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

sublimebookmark's People

Contributors

bollu avatar drknoxy avatar michaelbartnett avatar nrichards avatar overlord avatar ozuzo avatar relequestual avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sublimebookmark's Issues

F2 Skips Some Bookmarks (Windows)

Sublime 3 on Windows

I added some bookmarks with Control-Shift-F2 and some with Control-P "Add Bookmark". When I press F2 to cycle through bookmarks it skips over those created with the first technique. "Goto Bookmark" lists all of them.

In the attached image the first and third use the second technique. The second is skipped when I press F2.

capture

Goto bookmark shortcut

I found the most useful shortcut is to actually access bookmarks by names; would be good to have a default keyboard shortcut.

// Goto bookmark
{ "keys": ["ctrl+alt+shift+f2"], "command": "sublime_bookmark", "args" : { "type" : "goto" } },

Still need to find a good consistent shortcut.

Bookmarks and projects

Just tried this neat new ST 3 plugin, it's an definite improvement over the basic functionality of bookmarks, however, as someone usually working with different projects at the same time (and as mentioned in the TODO list), it would be essential that boomarks be restricted to their associated projects (when working with a saved project, not just some opened folder) and not displayed in the GOTO list when working in another. Thanks!

Bookmarks messing with tab switching

I've added bookmarks to a file. Right after I jump to a bookmark, if I control+tab to switch tabs, it switches me to another document with bookmarks, rather than the last document I was tabbed to.

Can't remove bookmark

I got the console log while remove a bookmark:

Traceback (most recent call last):
  File "removeBookmark in /Users/username/Library/Application Support/Sublime Text 3/Installed Packages/Sublime Bookmarks.sublime-package", line 56, in _done
  File "common in /Users/username/Library/Application Support/Sublime Text 3/Installed Packages/Sublime Bookmarks.sublime-package", line 65, in goto
  File "common in /Users/username/Library/Application Support/Sublime Text 3/Installed Packages/Sublime Bookmarks.sublime-package", line 101, in _get_personal_region
IndexError: list index out of range

Feature request: Quick add/remove bookmark, goto next, goto previous

Hi! I have an old (and, until recently, unpublished) bookmark plugin (https://github.com/Jimbly/SublimeGlobalBookmark) which provides a similar set of features, and when trying to add it to the package control (wbond/package_control_channel/pull/2641), was pointed at your plugin which has some of the same features (primarily, global bookmarks across all files and persisted between sessions).

There are a couple minor features which are provided by the default sublime bookmarks (and my plugin, which was designed to behave like Visual Studio's bookmarks which I was used to), which, if added, would completely remove any need for my plugin =).

Specifically commands (to be bound to keys) to:

  • quickly toggle a bookmark on the current line (don't want to have to enter a name each time)
  • go to the next bookmark (don't want to have to select from a menu each time, and, especially, remember where in the list I last was) - and goto previous may also be useful for some people

One other thing that would be handy (which I currently use from time to time, but not very often) would be to be able to set bookmarks in un-saved buffers (e.g. newly created files, or find results). Obviously these wouldn't persist between sessions.

I tend to use bookmarks a lot while doing refactoring or auditing some code behavior - I'll start by doing a search, looking through the results and bookmarking any I need to come back to, and maybe on each of those searching for who calls those lines of code and leaving bookmarks there, removing the bookmarks as I finish dealing with a section of code. I don't need naming (though having the line of code the bookmark is on in the menu is great!), just want to quickly be able to set and remove marks =).

Anyway, if these two features seem reasonable, and if they'd be easy for you to do, that'd be awesome, I'll cancel my (stalled) pull request and we can have one less library! If not something your interested in, I might be able to look at adding it in and sending a pull request, though not sure I'll get around to it any time soon.

Suggestion: Add option to select visibility mode when executing "Goto"

The title is a bit verbose.

In nature the request is simple although I can't talk about the necessary amount of work.

But let's get to business:

It would be great if there was another goto command, or alternativly an option, which would enable us to select the visibility mode before listing the bookmarks.

At the moment I have to switch the visibilty mode at least twice if I, for example, want to jump between file bookmarks and project or all bookmarks.
In the case of another command the visibility mode should only be valid for this one goto.

With this enhancement I could use a "default" mode, like project, but would be still able to quickly take a look at my file bookmarks.

What do you think of this?

I suggest Windows and MAC use same keybings file

On Mac, this is my keybings:

[
   { "keys": ["ctrl+shift+f2"], "command": "sublime_bookmark", "args" : { "type" : "add"  } },
   { "keys": ["ctrl+alt+f2"], "command": "sublime_bookmark", "args" : { "type" : "toggle_line"  } },
   { "keys": ["f2"], "command": "sublime_bookmark", "args" : { "type" : "goto_next" } },
   { "keys": ["shift+f2"], "command": "sublime_bookmark", "args" : { "type" : "goto_previous" } },
   { "keys": ["ctrl+f2"], "command": "sublime_bookmark", "args" : { "type" : "goto" } }

]

I use only ctrl instead of super, keep same with Windows. ctrl + shift + f2, add mark, and ctrl + alt + f2 to remove mark.

Add bookmarks to sidebar

Bookmarks for the current project should be listed in the sidebar, along with files. This would make this plugin much more valuable for those who want to see all their bookmarks for a project in one place!

Removing sourcecode and bookmark

Hi bollu,

is it possible to remove the bookmark when its sourcecode is deleted? In my case when I remove the lines from code the bookmark is still there.

Cu

Robin

Freeze on Windows8: FileExistsError: [Errno 17] File exists

Everytime I want to "Add Bookmark", Sublime freezes for ~10seconds and I get the following output although i restarted, reinstalled plugin, etc.

SublimeBookmarks: loading bookmarks from disk. Path: C:\Users\rtud\AppData\Roaming\Sublime Text 3/Local/sublimeBookmarks.pickle
Traceback (most recent call last):
  File "fileLock in C:\Users\rtud\AppData\Roaming\Sublime Text 3\Installed Packages\Sublime Bookmarks.sublime-package", line 61, in acquire
FileExistsError: [Errno 17] File exists

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 327, in on_deactivated_async
    callback.on_deactivated_async(v)
  File "statusMonitors in C:\Users\rtud\AppData\Roaming\Sublime Text 3\Installed Packages\Sublime Bookmarks.sublime-package", line 7, in on_deactivated_async
  File "statusMonitors in C:\Users\rtud\AppData\Roaming\Sublime Text 3\Installed Packages\Sublime Bookmarks.sublime-package", line 19, in save_all
  File "common in C:\Users\rtud\AppData\Roaming\Sublime Text 3\Installed Packages\Sublime Bookmarks.sublime-package", line 201, in get_bookmarks
  File "common in C:\Users\rtud\AppData\Roaming\Sublime Text 3\Installed Packages\Sublime Bookmarks.sublime-package", line 279, in _read_bookmarks_from_disk
  File "fileLock in C:\Users\rtud\AppData\Roaming\Sublime Text 3\Installed Packages\Sublime Bookmarks.sublime-package", line 88, in __enter__
  File "fileLock in C:\Users\rtud\AppData\Roaming\Sublime Text 3\Installed Packages\Sublime Bookmarks.sublime-package", line 67, in acquire
Sublime Bookmarks.fileLock.FileLockException: Timeout occured.

Default keymap

The default keymap is empty. This makes bookmarks shortcuts customization harder. Please populate it for Preferences > Package Settings > SublimeBookmark > Key Bindings: Default.

See Emmet for an example.

"Show All Bookmarks" is confusing

I'm not sure if an issue is appropriate here, sorry if I'm creating clutter.

I expected the "Show All Bookmarks" command to show me bookmarks, i.e. popup some kind of window that would display the bookmarks. I did not realize at all that it was setting the visibility level for the Goto command. It didn't even occur to me, I just thought the command was broken.

I might be alone in getting confused, but I suspect others might be as well. Renaming the command to something like "Set Visibility - All Bookmarks" might help.

I'd be happy to make a PR if you wanted one.

Scroll instead of UP - Down for Goto Bookmarks

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.

Bookmark styling

Been using this plugin for weeks now. I like the extra options it gives. Here's a few simple improvements, that would make it a lot better IMO.

  1. Instead of highlighting the whole line, I would like it to highlight the selected code instead. Like default bookmark manager.
  2. Outline is very annoying. I suggest making it 0.4 opacity OR clearing it from view when something else is selected OR just having the manager select the text normally OR instead of outline just use line-highlight, just like the ST3 setting ["highlight_line": true].
  3. Some documentation how to set a hotkey for "GoTo".

Feature Request: Relocate Existing Bookmark

Useful when one is reviewing code and would like to remember where they left off. In my case I'm going through a difficult-to-read function line-by-line and would like to relocate my "progress" bookmark. I can mark where I left off before I jump around the code base answering questions related to that line.

Bookmarks disappeared after sync

I'm using Sublime on two machines with all settings synced via OwnCloud. Everything is working fine, except the bookmarks obviously won't get synced. – they are just gone. Not sure, if this is a bug or wanted behaviour.

Edit:
To be more precise: The bookmarks are not gone, they just won't get synced. I set them up on machine A, snyced A with B and then B with A. Bookmarks stay available on A, but never appear on B. Seems as if they are saved somewhere outside /Packages or /Installed Packages, so they're not part of the sync. Is that correct?

Error Can't Load Plugin

Portable Install Sublime 3 Win 8.1 64

reloading plugin Sublime Bookmarks.addBookmarks
Traceback (most recent call last):
File "C:\Users\Robert\Desktop\Sublime Text Build 3047 x64\sublime_plugin.py", line 73, in reload_plugin
m = importlib.import_module(modulename)
File "X/importlib/init.py", line 88, in import_module
File "", line 1577, in _gcd_import
File "", line 1558, in _find_and_load
File "", line 1525, in _find_and_load_unlocked
File "C:\Users\Robert\Desktop\Sublime Text Build 3047 x64\sublime_plugin.py", line 671, in load_module
exec(compile(source, source_path, 'exec'), mod.dict)
File "addBookmarks in C:\Users\Robert\Desktop\Sublime Text Build 3047 x64\Data\Installed Packages\Sublime Bookmarks.sublime-package", line 4, in
File "C:\Users\Robert\Desktop\Sublime Text Build 3047 x64\sublime_plugin.py", line 671, in load_module
exec(compile(source, source_path, 'exec'), mod.dict)
File "common in C:\Users\Robert\Desktop\Sublime Text Build 3047 x64\Data\Installed Packages\Sublime Bookmarks.sublime-package", line 5, in
ImportError: cannot import name fileLock
reloading plugin Sublime Bookmarks.common
Traceback (most recent call last):
File "C:\Users\Robert\Desktop\Sublime Text Build 3047 x64\sublime_plugin.py", line 71, in reload_plugin
m = imp.reload(m)
File "X/imp.py", line 252, in reload
File "C:\Users\Robert\Desktop\Sublime Text Build 3047 x64\sublime_plugin.py", line 671, in load_module
exec(compile(source, source_path, 'exec'), mod.dict)
File "common in C:\Users\Robert\Desktop\Sublime Text Build 3047 x64\Data\Installed Packages\Sublime Bookmarks.sublime-package", line 5, in
ImportError: cannot import name fileLock
reloading plugin Sublime Bookmarks.gotoBookmark
Traceback (most recent call last):
File "C:\Users\Robert\Desktop\Sublime Text Build 3047 x64\sublime_plugin.py", line 73, in reload_plugin
m = importlib.import_module(modulename)
File "X/importlib/init.py", line 88, in import_module
File "", line 1577, in _gcd_import
File "", line 1558, in _find_and_load
File "", line 1525, in _find_and_load_unlocked
File "C:\Users\Robert\Desktop\Sublime Text Build 3047 x64\sublime_plugin.py", line 671, in load_module
exec(compile(source, source_path, 'exec'), mod.dict)
File "gotoBookmark in C:\Users\Robert\Desktop\Sublime Text Build 3047 x64\Data\Installed Packages\Sublime Bookmarks.sublime-package", line 4, in
ImportError: cannot import name common
reloading plugin Sublime Bookmarks.removeBookmark
Traceback (most recent call last):
File "C:\Users\Robert\Desktop\Sublime Text Build 3047 x64\sublime_plugin.py", line 73, in reload_plugin
m = importlib.import_module(modulename)
File "X/importlib/init.py", line 88, in import_module
File "", line 1577, in _gcd_import
File "", line 1558, in _find_and_load
File "", line 1525, in _find_and_load_unlocked
File "C:\Users\Robert\Desktop\Sublime Text Build 3047 x64\sublime_plugin.py", line 671, in load_module
exec(compile(source, source_path, 'exec'), mod.dict)
File "removeBookmark in C:\Users\Robert\Desktop\Sublime Text Build 3047 x64\Data\Installed Packages\Sublime Bookmarks.sublime-package", line 4, in
ImportError: cannot import name common
reloading plugin Sublime Bookmarks.statusMonitors
Traceback (most recent call last):
File "C:\Users\Robert\Desktop\Sublime Text Build 3047 x64\sublime_plugin.py", line 73, in reload_plugin
m = importlib.import_module(modulename)
File "X/importlib/init.py", line 88, in import_module
File "", line 1577, in _gcd_import
File "", line 1558, in _find_and_load
File "", line 1525, in _find_and_load_unlocked
File "C:\Users\Robert\Desktop\Sublime Text Build 3047 x64\sublime_plugin.py", line 671, in load_module
exec(compile(source, source_path, 'exec'), mod.dict)
File "statusMonitors in C:\Users\Robert\Desktop\Sublime Text Build 3047 x64\Data\Installed Packages\Sublime Bookmarks.sublime-package", line 2, in
ImportError: cannot import name common

Default keybindings

Hey, it'd be nice to have a default keybindings file so we don't have to figure out command names ourselves to make keybindings.

Also, I wanted to donate, but the only way to do so seems to be with a weekly donation? That's a bit much of a commitment for me, any way to do one time donations?

[Bug] How to go to the bookmark without opening all files that I have bookmarks?

Expected behavior

I think it should be so:

  1. I run one of command SublimeBookmarks.
  2. I select my bookmark.
  3. It opens a file, where the bookmark, on the line, where the bookmark.

Actual behavior

Open all the files, which are my bookmarks, or not open anything.

Steps to reproduce

Sublime Bookmarks: Goto Bookmarks

Sublime Bookmarks: Goto Bookmarks → was opened all files, that I have bookmarks.

command: sublime_bookmark {"type": "goto"}
[<Sublime Bookmarks.bookmark.Bookmark object at 0x049C8E90>, <Sublime Bookmarks.bookmark.Bookmark object at 0x049CB0B0>, <Sublime Bookmarks.bookmark.Bookmark object at 0x049C8F90>, <Sublime Bookmarks.bookmark.Bookmark object at 0x049C8FB0>, <Sublime Bookmarks.bookmark.Bookmark object at 0x049C8FD0>, <Sublime Bookmarks.bookmark.Bookmark object at 0x049C8FF0>, <Sublime Bookmarks.bookmark.Bookmark object at 0x049CB030>, <Sublime Bookmarks.bookmark.Bookmark object at 0x049CB050>, <Sublime Bookmarks.bookmark.Bookmark object at 0x049CB070>, <Sublime Bookmarks.bookmark.Bookmark object at 0x049CB090>]

I do not want to run a command when opened even a single file, it is necessary that the file was opened only when I choose my bookmark.

Sublime Bookmarks: Show All Bookmarks

I use SublimeBookmarks with patch.

Sublime Bookmarks: Show All Bookmarks → when I run this command, nothing happens.

command: sublime_bookmark {"type": "show_all_bookmarks"}

Environment

  • Operating system and version:
    Windows 10 1067
  • Sublime Text:
    Build 3114

Thanks.

unable to bookmark an empty line

It seems impossible to bookmark an empty line.

Steps to reproduce :

  • go to an empty line
  • add bookmark there
  • fill bookmark name
  • list bookmarks : it's not here

The same process with a non empty line works

While in split screen, "go to bookmark" also changes other pane

I have a project with bookmarks and working with two vertical panes. The cursor is located in the left pane, use "go to bookmark" and the left pane switch to the desired bookmark, however, in the right pane, strange things are happening.
The right pane is on file a.
"goto bookmark" in the left pane
during selection of the bookmark, the right pane jumps to file b (always the same, even if not opened yet)
select bookmark in the left pane, the right pane jumps to file c (always the same, it's another bookmark)

Well, in general, the goto bookmark flow mess with the pane which is not in focus, setting it to different states of opened files and focused file, all along the bookmark selection process on the primarily focused pane.

Bookmark Deleted When 'Gone To'

Do this to repro ->

  1. Add SublimeBookmark to a line in a workspace
  2. Create New Document and hit shift+cmd+p and enter SublimeBookmark: Choose Show All Bookmars
  3. Hit enter when you get to bookmark you want.
  4. The file opens in document and the line is shortly highlighted but has no bookmark icon.
  5. Again shift+cmd+p and enter SublimeBookmark: Choose Show All
  6. This time around the chooser is empty and the bookmark vanished.

If you go back to the work space where you initially created the bookmark it will have vanished there sa well...

I suggest not using this plug-in until this get fixed. I lost HOURS of bookmarking !

Nice idea and great idea for a plug. Alas, it will wind up costing you time and loosing data !

Bookmarks removed if file closed?

I have an issue where a bookmark is removed once I use it.

My setup:
Sublime Text 3 build 3061
OSX 10.9.2

Steps to reproduce:

  • Open a file
  • Set a bookmark for a line
  • Close the file (close the tab)
  • Open Command Palette and select "SublimeBookmarks: Goto Bookmark"
  • Select bookmark that was just created (Note that at this point the bookmark is no longer marked as such)
  • Close the tab again
  • Open Command Palette and try selecting the bookmark again and it will not be there anymore

Sublime Text Console:

add
[<Sublime Bookmarks.bookmark.Bookmark object at 0x11010edd0>]
EMPTY BOOKMARK. NAME: Bookmark1
[]

It seems to me that the bookmark is removed from the list once I have used it.
I tried going through the plugin code but I could not see anything obviously wrong.

Also, I am not sure this is intended behaviour (this does not happen if you keep the tab open!) or not.

Remove default bookmarks from menu

Hey, it's a great plugin, but I would really love to see it substitute the default marking system completely, that is, inject itself to key bindings and cmd/ctrl+shift+p menu. Currently I use ctrl+shift+p menu to add/remove your bookmarks, but it's really awkward to see default menu items as well. Thank you!

This Package Appears Broken

This package doesn't work. Nothing worked right.

When going to a bookmark it removed it. I couldn't cycle through bookmarks with F2. The right-click didn't work at all. Ctrl+P did nothing but cycle through my project folder files.

I'm using Sublime Text 2.0.2

Please sort bookmarks by their position in document

Current behavior:

  • Open a document
  • Take 1st bookmark at line 1
  • Take 2nd bookmark at line 3
  • Take 3rd bookmark at line 2
  • Open 'goto bookmark'
  • Observe that bookmarks appear as Line 1, Line 3, Line 2

Expected behavior:

  • Open 'goto bookmark'
  • Bookmarks should appear as Line 1, Line 2, Line 3

Kindly give a setting to achieve this.

Multi-column layout

"Goto Bookmark" window always sticks to first column of the layout, and if command was called not from first column window does not response to enter/escape key

Show All Bookmarks not working

For some reason I cannot get any of the 3 Show Bookmarks functions to work in ST3. I have had it working in the last week or so but now it never works. All the other functions seem to work ok.

Keybindings File

Implement a default keybindings file?

So all the commands are there and we can edit on our user keybindings

Goto jumps to first tab of multiple duplicate tabs (via 'new view into file')

Hiya, I often have a large file open in multiple duplicate tabs (via file > 'new view into file' option), & am looking at / working on multiple parts of that big file.
I even usually have duplicate tabs open in other panes / panels, so that I can see another part of the code when writing code elsewhere in the file.

As awesome as bookmarks are for navigation, it doesn't work correctly as it jumps to the first instance / tab of that view into the file when I 'Goto' a bookmark (even via F2)

This has been tested;

  • This is based on order of current position of tabs (first is brought to focus), not in order of first-opened.
    • So; it's possible to drag & drop the order of tabs, but the left-most is always the one given focus & displayed when goto bookmark.
  • This is per-pane / per-panel
    • So; the first duplicate tab in the currently active pane / panel is brought to front / given focus (does not affect other duplicate tabs in other panes (it's possible; I currently have 6 duplicates of the same file open!))

This completely makes duplicate tabs & bookmarks useless together.

Help?

O_O

bookmarks not loading after restart

let's say you have two projects: A and B

create a bookmark in project A
restart sublime
bookmark is restored

BUT

create a bookmark in project A
goto project B
restart sublime
switch to project A
bookmark is not restored

Allow empty bookmarks

A very common use-case for bookmarking for me is marking a spot in a notes file that I want to return to. Standard ST bookmarks allow me to put the cursor on this line and bookmark it. Can sublimeBookmark be made to do this as well?

Line number remembered, not the line

When I add a bookmark for, say, line 10 and then I go to line 5 and add 3 more lines, my bookmark stays at line 10, not 13 as it should, but the bookmark outline does move to line 13.

Error with cyrillic text

Win 7 x64 (portable version)

LOG: Bookmark: Ещё вкладка | 2: 8| Project: 


Exception in thread Thread-35:
Traceback (most recent call last):
  File "X/threading.py", line 639, in _bootstrap_inner
  File "gotoBookmark in O:\Sublime Text 3\Data\Installed Packages\Sublime Bookmarks.sublime-package", line 41, in run
  File "common in O:\Sublime Text 3\Data\Installed Packages\Sublime Bookmarks.sublime-package", line 211, in create_bookmarks_panel_items
  File "common in O:\Sublime Text 3\Data\Installed Packages\Sublime Bookmarks.sublime-package", line 191, in _ellipsis_string_begin
TypeError: object of type 'NoneType' has no len()

Option "Goto Bookmark" opens all files that have Bookmarks

Description:
They are n-files in project that have Bookmarks.
"Show bookmarks only in current file" is set(*), so "Goto Bookmark" in file shows Bookmarks only form current file, but unfortunelly opens all files in ST - WHY ?
How can I change/block it?

Setting the parameter(*) does not matter.

No idea :(?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.