- [X] transparent images appear in email with horiz lines
- [ ] Replying to w3m/html mail results in unsightly markup in reply
- [ ] converting email parts with external code should be async
-- [ ] fill:end-re should default to fill:start-re
+- [X] fill:end-re should default to fill:start-re
- [ ] md-mode should set the fill re-s don't rely on config
- [ ] config.py should load from $HOME/.config/edlib/config.py
exec(read())
focus.call("doc:set:whitespace-width", "60")
if p and p[-3:] == ".md":
+ # Until I have a real markdown module, I need this at least.
if os.getenv("EDLIB_TESTING"):
focus.call("doc:set:view-default", "textfill,whitespace")
else:
focus.call("doc:set:view-default", "textfill,whitespace,autospell")
- focus.call("doc:set:fill-width", "72")
-
- focus.call("doc:set:fill:start-re",
- "^([^a-zA-Z0-9\\n]*$| *-| *- *\\[[ X]]| *#+| *\\*+| *[0-9]*\\.)"
- )
- focus.call("doc:set:fill:end-re",
- "^([^a-zA-Z0-9\\n]*$| *-| *- *\\[[ X]]| *#+| *\\*+| *[0-9]*\\.)"
- )
+ focus["fill-width"] = "72"
+ focus["fill:start-re"] = ("^("
+ "[^a-zA-Z0-9\\n]*$|" # empty/puctuation line
+ " *-|" # list item
+ " *- *\\[[ X]]|" # todo list item
+ " *#+|" # section head
+ " *[0-9]*\\.)") # Numbered list
return edlib.Efallthrough
m = mark.dup()
focus.call("doc:EOL", 100, m)
re = focus.call("doc:get-attr", mark, "fill:end-re", ret='str')
+ if not re:
+ re = focus.call("doc:get-attr", mark, "fill:start-re", ret='str')
if not re:
re = "^[^a-zA-Z0-9\n]*$"
try: