-
Notifications
You must be signed in to change notification settings - Fork 50
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
List Continuation for Markdown #1305
Comments
Example of list continuation: - first item
- | where |
It could be implemented in a plugin similarly to how the autoindent works. Some IDEs also auto-close quotes and parentheses. Porcupine doesn't do this, though it would also be a useful feature. It might would be hard to get right. |
Yeah I was just looking at https://github.com/Akuli/porcupine/blob/main/porcupine/plugins/autoindent.py |
@rdbende it was easily implemented in DIP... |
@Moosems what do you mean? |
Just make a dict of items to insert certain variations on and then context for each variation. For example: {
"python":
{
"indent regex":
[
"action"
]
...
}
} |
Or even just a bind and associated action. |
Is there some prior art here? Sorry I'm starting from ground zero here |
Umm, wat?? |
@benjamin-kirkbride So I'm guessing @Moosems is trying to say, that you could put some configuration about these auto-continuations into the |
Ah, I see. Any thoughts on - item 1
- | pressing - item 1
- | ? |
I like both of your ideas :) Ideally they would be in the same plugin. For the initial version, the plugin could just check whether the filetype is set to Markdown. We can later make it configurable in
DIP is Moosems's closed-source editor project. Maybe the "For example" thing was part of a configuration file for DIP. You don't really need to know anything about DIP to work on Porcupine, but you will occasionally see Moosems talking about it on Porcupine's issue tracker. |
Yes you will 🤣. In DIP (my personal project) I use a list of chars to finish with and their endings. This could be updated to check a line for its contents by regex and cases but that was the idea I presented :). |
I would like to see automatic list continuation when editing markdown, as well as some other features like that.
Is such a thing able to be done with a plugin? Any tips?
Thanks :)
The text was updated successfully, but these errors were encountered: