Closed Akuli closed 3 months ago
From #1308
I would like to see more patterns documented, it's pretty daunting trying to get started. For instance, I'm looking at the dedent method of the MainText widget. There is a lot to figure out here. If there was a "cookbook" of common patterns that would make getting started a lot less daunting.
I would like to see more patterns documented, it's pretty daunting trying to get started.
For instance, I'm looking at the dedent method of the MainText widget.
There is a lot to figure out here. If there was a "cookbook" of common patterns that would make getting started a lot less daunting.
Making a list of stuff to document...
text widget specific:
int(self.index(location).split(".")[1])
line = self.get(f"{location} linestart", f"{location} lineend")
"end - 1 char"
Other stuff:
self._tab.settings.get("indent_size", int)
.update()
.event_generate()
on_new_filetab()
docs/plugin-intro.rst
Please suggest more stuff to be added here :)
From #1308
Making a list of stuff to document...
text widget specific:
int(self.index(location).split(".")[1])
line = self.get(f"{location} linestart", f"{location} lineend")
"end - 1 char"
madnessOther stuff:
self._tab.settings.get("indent_size", int)
.update()
+.event_generate()
in tests (from code review with benjamin-kirkbride)on_new_filetab()
and the likedocs/plugin-intro.rst
Please suggest more stuff to be added here :)