Fork me on GitHub
#emacs
<
2017-01-13
>
joost-diepenmaat14:01:58

Does anyone feel like trying out my minor mode for editing string literals/docstrings? I wrote it to make it easier to edit long markdown-formatted docstrings. Some final touches need to be done but it’s fully functional: https://github.com/joodie/literal-string-mode

joost-diepenmaat14:01:04

the idea behind it is similar to org-mode’s org-edit-src-code

joost-diepenmaat14:01:42

when point is at a (doc)string, you can press C-c ' and it will open the content of the string in a separate buffer, with quotes unescaped and markdown-mode switched on, ready for editing, then another press on C-c ' will paste the editing buffer content back into the original string literal

chris14:01:21

this sounds like a great idea tbh

joost-diepenmaat14:01:37

I’ve got some code with multi-page docstrings, and at that point it becomes very useful

joost-diepenmaat14:01:36

thanks. yeah I found it very handy in org-mode, so I just copied the idea

qqq20:01:32

I'm a big fan of helm. One thing I can not figure out how to do is the following: (1) I provide a bunch of lines of text; and (2) I narrow through them via helm. Is there a way to do this?

qqq20:01:53

I want to define my own 'helm window thingy', where I manually provide the lines of text / where it should djump to, and then I leverage the helm interface to narrow through it.

qqq21:01:57

@caio: this is exactly what I needed; thanks!