Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
echosa opened this issue Mar 3, 2017 · 6 comments
Open

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

echosa opened this issue Mar 3, 2017 · 6 comments

Comments

@echosa
Copy link

echosa commented Mar 3, 2017

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?

@trogdoro
Copy link
Owner

trogdoro commented Mar 4, 2017 via email

@echosa
Copy link
Author

echosa commented Mar 4, 2017

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?

@trogdoro
Copy link
Owner

trogdoro commented Mar 5, 2017 via email

@echosa
Copy link
Author

echosa commented Mar 5, 2017

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. :-)

@trogdoro
Copy link
Owner

trogdoro commented Mar 5, 2017 via email

@echosa
Copy link
Author

echosa commented Mar 5, 2017

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? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants