trogdoro / xiki

A shell console with GUI features

Home Page:http://xiki.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Commands in notes won't execute unless under a > heading

echosa opened this issue · comments

I have a xiki note in which I have some shell commands for easy access. At the top of the note, I have a "heading", starting with >. With this note, I can run commands like this:

$ fooCTRL-X # to get into the note
CTRL-O # to open the heading
<type to search/filter>
CTRL-G # to run the command the cursor is on

I realized that I could save a step by removing the header. Then I wouldn't need that first CTRL-O in the process. I could just open the note file and immediately start searching. (With headings, immediately searching searches for matching headings only.)

However, if I remove the > heading, the note doesn't work properly. I can immediately search for the right command, but pressing CTRL-G on the command doesn't do anything.

Are shell commands within notes required to be under a > heading in order to be executed?

Ah, ok. So that's an option that keeps me from having to Ctrl-O to open the headings to see their contents. However, I can't search/filter in the note edit view, unfortunately. Understandably so, though. I guess as is, Xiki doesn't quite do exactly what I want.

I'm curious, though: why, if I remove the heading line, does Ctrl-G not execute commands from the note file when it's opened with Ctrl-X?

  • If you open the note with Ctrl-G (note "edit mode", I guess), Ctrl-G executes commands regardless of headings. (But the text obviously doesn't search/filter)
  • If you open the note with Ctrl-X and the commands are under a heading, Ctrl-G executes. (Once you open the heading and manually move to the proper command.)
  • If you open the note with Ctrl-X and the commands are not under a heading, Ctrl-G doesn't execute the commands. Why not?

Oh, I didn't notice the difference with the colon. I'll watch for that. I'm glad you seem to understand my use case, though! Hopefully that's something you can account for. If not, I can still do what I need to do, just less conveniently. :-)

Not urgent, but nice to have. I'm still learning Xiki and in the "trying it out" stage, so it's not exactly an integral part of my workflow, yet. I'd love to see a new video showcasing the newer Xiki, though! It has changed a lot since I first tried it, back when it had to be run within Emacs, I think? :)