Home Download Buy Blog Forum Support

Sublime Bookmarks (ST3)

Sublime Bookmarks (ST3)

Postby bollu on Sun Nov 24, 2013 7:15 am

Got sick of sublime text's limited bookmark capability. Decided to write a plugin :)

Here's a link. I'd like some feedback.

Thanks!
~Bollu
bollu
 
Posts: 6
Joined: Sun Nov 24, 2013 7:13 am

Re: Sublime Bookmarks (ST3)

Postby iamntz on Sun Nov 24, 2013 7:29 am

I saw it yesterday. Unfortunately:

Code: Select all
reloading plugin sublimeBookmark.addBookmarks
Traceback (most recent call last):
  File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 73, in reload_plugin
    m = importlib.import_module(modulename)
  File "X/importlib/__init__.py", line 88, in import_module
  File "<frozen importlib._bootstrap>", line 1577, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1558, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1525, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 586, in _check_name_wrapper
  File "<frozen importlib._bootstrap>", line 1023, in load_module
  File "<frozen importlib._bootstrap>", line 1004, in load_module
  File "<frozen importlib._bootstrap>", line 562, in module_for_loader_wrapper
  File "<frozen importlib._bootstrap>", line 869, in _load_module
  File "<frozen importlib._bootstrap>", line 313, in _call_with_frames_removed
  File "C:\Users\iamntz\AppData\Roaming\Sublime Text 3\Packages\sublimeBookmark\addBookmarks.py", line 4, in <module>
    from . import common
  File "C:\Users\iamntz\AppData\Roaming\Sublime Text 3\Packages\sublimeBookmark\common.py", line 5, in <module>
    from . import fileLock
ImportError: cannot import name fileLock
reloading plugin sublimeBookmark.common
Traceback (most recent call last):
  File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 73, in reload_plugin
    m = importlib.import_module(modulename)
  File "X/importlib/__init__.py", line 88, in import_module
  File "<frozen importlib._bootstrap>", line 1577, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1558, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1525, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 586, in _check_name_wrapper
  File "<frozen importlib._bootstrap>", line 1023, in load_module
  File "<frozen importlib._bootstrap>", line 1004, in load_module
  File "<frozen importlib._bootstrap>", line 562, in module_for_loader_wrapper
  File "<frozen importlib._bootstrap>", line 869, in _load_module
  File "<frozen importlib._bootstrap>", line 313, in _call_with_frames_removed
  File "C:\Users\iamntz\AppData\Roaming\Sublime Text 3\Packages\sublimeBookmark\common.py", line 5, in <module>
    from . import fileLock
ImportError: cannot import name fileLock
reloading plugin sublimeBookmark.gotoBookmark
Traceback (most recent call last):
  File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 73, in reload_plugin
    m = importlib.import_module(modulename)
  File "X/importlib/__init__.py", line 88, in import_module
  File "<frozen importlib._bootstrap>", line 1577, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1558, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1525, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 586, in _check_name_wrapper
  File "<frozen importlib._bootstrap>", line 1023, in load_module
  File "<frozen importlib._bootstrap>", line 1004, in load_module
  File "<frozen importlib._bootstrap>", line 562, in module_for_loader_wrapper
  File "<frozen importlib._bootstrap>", line 869, in _load_module
  File "<frozen importlib._bootstrap>", line 313, in _call_with_frames_removed
  File "C:\Users\iamntz\AppData\Roaming\Sublime Text 3\Packages\sublimeBookmark\gotoBookmark.py", line 4, in <module>
    from . import common
  File "C:\Users\iamntz\AppData\Roaming\Sublime Text 3\Packages\sublimeBookmark\common.py", line 5, in <module>
    from . import fileLock
ImportError: cannot import name fileLock
reloading plugin sublimeBookmark.removeBookmark
Traceback (most recent call last):
  File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 73, in reload_plugin
    m = importlib.import_module(modulename)
  File "X/importlib/__init__.py", line 88, in import_module
  File "<frozen importlib._bootstrap>", line 1577, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1558, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1525, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 586, in _check_name_wrapper
  File "<frozen importlib._bootstrap>", line 1023, in load_module
  File "<frozen importlib._bootstrap>", line 1004, in load_module
  File "<frozen importlib._bootstrap>", line 562, in module_for_loader_wrapper
  File "<frozen importlib._bootstrap>", line 869, in _load_module
  File "<frozen importlib._bootstrap>", line 313, in _call_with_frames_removed
  File "C:\Users\iamntz\AppData\Roaming\Sublime Text 3\Packages\sublimeBookmark\removeBookmark.py", line 4, in <module>
    from . import common
  File "C:\Users\iamntz\AppData\Roaming\Sublime Text 3\Packages\sublimeBookmark\common.py", line 5, in <module>
    from . import fileLock
ImportError: cannot import name fileLock
reloading plugin sublimeBookmark.statusMonitors
Traceback (most recent call last):
  File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 73, in reload_plugin
    m = importlib.import_module(modulename)
  File "X/importlib/__init__.py", line 88, in import_module
  File "<frozen importlib._bootstrap>", line 1577, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1558, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1525, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 586, in _check_name_wrapper
  File "<frozen importlib._bootstrap>", line 1023, in load_module
  File "<frozen importlib._bootstrap>", line 1004, in load_module
  File "<frozen importlib._bootstrap>", line 562, in module_for_loader_wrapper
  File "<frozen importlib._bootstrap>", line 869, in _load_module
  File "<frozen importlib._bootstrap>", line 313, in _call_with_frames_removed
  File "C:\Users\iamntz\AppData\Roaming\Sublime Text 3\Packages\sublimeBookmark\statusMonitors.py", line 2, in <module>
    from . import common
  File "C:\Users\iamntz\AppData\Roaming\Sublime Text 3\Packages\sublimeBookmark\common.py", line 5, in <module>
    from . import fileLock
ImportError: cannot import name fileLock
found 31 files for base name Default.sublime-keymap
found 28 files for base name Main.sublime-menu
top level value must be an array


(windows 8.1, latest dev sublime, installed both from package control and git clone)
iamntz
 
Posts: 897
Joined: Fri Apr 29, 2011 8:52 am
Location: Romania

Re: Sublime Bookmarks (ST3)

Postby bollu on Sun Nov 24, 2013 6:48 pm

Sorry, I'm an *idiot*. I forgot to push the file :] This is my first time owning a project that's used by other people.

Sorry again :), and thanks!
bollu
 
Posts: 6
Joined: Sun Nov 24, 2013 7:13 am

Re: Sublime Bookmarks (ST3)

Postby iamntz on Sun Nov 24, 2013 7:27 pm

Oh, now it's better! Thanks!

I like how the line is highlighted. There is a way of adding a toggle bookmark?

Btw, when i try to remove a bookmark:
Code: Select all
Traceback (most recent call last):
  File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 526, in run_
    return self.run()
  File "removeBookmark in C:\Users\iamntz\AppData\Roaming\Sublime Text 3\Installed Packages\Sublime Bookmarks.sublime-package", line 26, in run
AttributeError: 'RemoveBookmarkCommand' object has no attribute 'threaad'


Probably you are too generous with `a` letters? :D
iamntz
 
Posts: 897
Joined: Fri Apr 29, 2011 8:52 am
Location: Romania

Re: Sublime Bookmarks (ST3)

Postby bollu on Mon Nov 25, 2013 5:12 pm

thanks!

That was a branch of code I'd never had to execute. So I didn't catch the bug.

Also, this is why I like C++ more than python ^_^. Trivial bugs are easier to catch.

Thanks again!
Bollu
bollu
 
Posts: 6
Joined: Sun Nov 24, 2013 7:13 am

Re: Sublime Bookmarks (ST3)

Postby bollu on Tue Nov 26, 2013 6:31 pm

Any other bugs? I think the plugin is kinda-sorta stable now.
bollu
 
Posts: 6
Joined: Sun Nov 24, 2013 7:13 am

Re: Sublime Bookmarks (ST3)

Postby bollu on Fri Nov 29, 2013 2:15 pm

Plugin is fully functional as well as stable :)

It now handles projects properly!

linky: https://github.com/bollu/sublimeBookmark
bollu
 
Posts: 6
Joined: Sun Nov 24, 2013 7:13 am


Return to Plugin Announcements

Who is online

Users browsing this forum: No registered users and 9 guests