erinata / SublimeBullet

This is a Sublime Text plugin for markdown style Bullet points and Number lists. It automatically add * and - for unordered lists, > for blockquotes, and numbered items for number lists.
6 stars 8 forks source link

Sublime Text 3 support please? #8

Open kaushikgopal opened 11 years ago

kaushikgopal commented 11 years ago

I think the plugin needs to be modified for ST3?

Here's the exception i'm getting from console:

File "...Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 270, in on_modified
callback.on_modified(v)
File ".../Application Support/Sublime Text 3/Packages/Bullet/Bullet.py", line 96, in on_modified
edit = view.begin_edit()
TypeError: begin_edit() missing 2 required positional arguments: 'edit_token' and 'cmd'

Cheers.

yimingli commented 11 years ago

+1

onlineth commented 8 years ago

+1

afloresescarcega commented 8 years ago

+1

SamPeck commented 6 years ago

+1

shingotomiy commented 3 years ago

+1

pruppert commented 1 year ago

I was wanting this updated also, now for Sublime Text 4. I figured out a simple fix, at least for markdown files (my main use case.

In Bullet.py, comment out the following lines 96, 97, and 98:

edit = view.begin_edit()
view.insert(edit, loc.end(), insertion)
view.end_edit(edit)

and paste the following on a newline 99:

view.run_command("insert", {"characters": insertion})