-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bookmarks removed if file closed? #23
Comments
yes i too tried the same, open the project, add a bookmark, close the tabs, exit sublime, open the project, cmd+p, gotobookmark, there are no bookmarks |
@anandsunku That sounds like slightly different behaviour Here is what I have been able to find out: |
I'm having the same issue, are you never supposed to close your files? I was hoping that bookmarks would get saved to the project. |
I am also having the same issue; closing files seems to be liable to erasing all bookmarks. Seems to happen intermittently but often enough to make this plugin unusable. It would be great it this problem could be fixed, because this is potentially a very useful plugin. |
When you select the bookmark after closing the tab, it is probably showing a cached entry which is refreshed when you open the file, and the plugin finds no bookmarks and if you try the gotobookmark with the file opened the second time it should show no bookmarks. So the bookmarks are not being saved here or are failing to get saved or something. it is indeed a quite useless plugin if bookmarks are not saved between files open/close because then they are not really bookmarks! |
I encountered the same problem and decided to debug further since it's such a useful package for day-to-day task. If my understanding is correct, the problem seems to be that the bookmark was "updated" while the view was still loading and thus deemed "empty" and removed. Changing one line is sublimebookmark.py seems to do the trick (by ignoring the bookmark when the view is still loading, since the same function will be called again later on via other event, but I can't say this is definitely the right solution):
|
@kannus it works! |
@kannus Sorry, where is this file/code located? I'm on Windows... |
@InigoWD ...\Sublime Text 2\Packages\Sublime Bookmarks |
Nope, I don't have this structure. I am using ST3 on Windows 7. In the following directory: C:\Users\Inigo\AppData\Roaming\Sublime Text 3\Installed Packages\ I have the file "Sublime Bookmarks.sublime-package" But it is unreadable. The documentation states a different protocol is requiried to manually modify packages. Hence my confusion. Where and how do I insert the code @kannus posted...? Edit: Link not working. Here: http://docs.sublimetext.info/en/latest/extensibility/packages.html#overriding-packages |
@InigoWD The '.sublime-package' is just a Zip. You can just unzip it,
|
@InigoWD Sorry I did not mention how I even got to that file to change to being with but @gwenzek covered it. I simply unzipped that package (on windows, you probably need to rename it to something.zip, unzip it, modify source, zip it, rename the zip file back to sublime-package and install it again). |
Thanks, both of you. So the steps I took (Windows 7) were:
Started ST3.... That sound about right? It's working so far... |
Fix for 2024? The bookmark sublime file is not present in installed packages folder. Seems it've been moved but it's still not working |
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:
Sublime Text Console:
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.
The text was updated successfully, but these errors were encountered: