Hi,
when I use org-roam-node-find to create a new node, I’m unable to create titles with spaces in it.
Is this a limitation of org-roam or is there is something wrong with my configuration?
Thank you,
Ingo
Emacs: GNU Emacs 27.2.50 (build 1, x86_64-apple-darwin19.6.0, NS appkit-1894.60 Version 10.15.7 (Build 19H1030))
of 2021-06-02
Framework:
Org: Org mode version 9.4.6 (9.4.6-11-g1ee52c-elpaplus @ /Users/irichter/.emacs.d/elpa/org-plus-contrib-20210726/)
I’ve not observed such a limitation. What’s your configuration like, I suspect any templates would be most interesting to share in order to get a good answer.
I didn’t realize that the capture template is used in this case. After removing the capture template from the config it was working. Thanks for the tip
That was the template that I used to capture from the browser
Hm, I was wrong. That didn’t resolve the issue. I’m able to type this is and then no space will appear after is. Writing some other word and I’m unable to have a space after the word. That is really bizarre and I don’t know what is responsible for that completion behavior
Thank you, bizarre was not the correct word to describe my perception of that misbehavior
Sometimes, I don’t even know exactly what to call a certain feature or behavior correctly.
Anyway, emacs is a huge learning experience and it keeps going day in, day out.
Your snippet was definitely helping me solve the issue in the minibuffer, and spaces works fine now. That makes navigating and creating links much easier.
If you paste the title rather than typing it into the minibuffer, spaces will be allowed. It might be a goofy hack, but it’s simple enough that I haven’t been motivated to really solve the problem, which I of course share.
A standard hack here too is to use the literal character escape thing. Type C-q and then space. It’s a bit like using \ in a literal string in programming.
I use it all the time to search and replace \n to an actual newline in printed output, typing C-q C-j to get newline.
The detail
quoted-insert is an interactive compiled Lisp function in ‘simple.el’.
It is bound to C-q.
(quoted-insert ARG)
Read next input character and insert it.
This is useful for inserting control characters.
With argument, insert ARG copies of the character.
If the first character you type after this command is an octal digit,
you should type a sequence of octal digits that specify a character code.
Any nondigit terminates the sequence. If the terminator is a RET,
it is discarded; any other terminator is used itself as input.
The variable ‘read-quoted-char-radix’ specifies the radix for this feature;
set it to 10 or 16 to use decimal or hex instead of octal.
In overwrite mode, this function inserts the character anyway, and
does not handle octal digits specially. This means that if you use
overwrite as your normal editing mode, you can use this function to
insert characters when necessary.
In binary overwrite mode, this function does overwrite, and octal
digits are interpreted as a character code. This is intended to be
useful for editing binary files.