When I’m typing within a code block, if what I’m typing is the contents of a shell script, Perl script, or some other language which uses #
to delimit comments, when I type that #
it immediately pops up a list containing what I assume are tags. If I hit ENTER without noticing the pop-up (because I’m typing while looking at something else, and not watching the cursor move across the screen), it fills in the first tag and doesn’t move to the next line.
The problem is, in many cases all I want on that line is just the #
character.
#!/bin/bash
#
# Dummy script
# John <[email protected]> 2024-09-06
#
# The line right above this one shows
# a case when I do this.
#
# And there's another example.
In almost every other editor I use, I just type #
, hit ENTER, and keep going … because the editor isn’t trying to “help” me type, or it has options to disable “clippy”.
With Obsidian, after I hit ENTER and notice the cursor didn’t move down, I have to go back up, delete the tag’s text, hit ↓ or → to move the cursor to the beginning of the next line, and only then can I keep typing. This is a major interruption when I’m “in the flow” and writing something. I shouldn’t need to think about which program I’m typing into and what its oddities are, I’m just trying to get my thoughts down so I can move on to the next part of the project.
What I’m trying to do
Type the contents of a shell or Perl script without Obsidian interrupting my typing and my train of thought.
Things I have tried
Searched through all of the settings screens to see if there was a preference to disable these kinds of pop-ups, either just for code blocks, or globally. I didn’t find any, although it’s entirely possible that I just missed something.