Issue with reference from Python double underscore or double asterisk

Not sure if this is unique to Python. There are keywords with double underscore (special attributes). For example, __file__
When I try to type them into a reference, Remnote behaves strangely; it is opening up another reference input box. So, I tried to just type out the __file__ with the aim of converting it into reference later, it treats the second underscore as a command to start underlining the word.

To learn details on the “special attributes” in Python, I would need to create reference for them.
Similarly, I have difficulty in creating keywords with double asterisk, such as **kwargs.
So, I would request the option to be able to have double underscore and double asterisk as part of references and tags.

Kind regards,
Brindha

As you said, this seems just like a bug in the slate editor. Shortcodes for formatting and referencing like **, __, ## [[ etc. should be disabled while in a search box. For me it does not make sense to search for anything but plain text.
This should be posted on the issue tracker (as well).

Maybe you can hack together a keyboard macro to insert __ and not trigger the formatting like _ _<Left><Del><Right> :stuck_out_tongue: Or rename __file__ to _file while writing and back whhen reading/learning. Or don’t reference for now and add the references later using the text search portal (stub).

Good point - we’ll fix this in the next release :slight_smile:

2 Likes