creating notes example doesn't work

102 views
Skip to first unread message

Kurt

unread,
Oct 11, 2016, 7:32:44 PM10/11/16
to Xiki
From this:

> Creating notes
Let's create a very simple note.

1. Press Ctrl+Q to go back to bash.
2. Type "echo" on the bash prompt, but don't press return.
3. Press Ctrl+G to go to the topic file.

It's blank since it doesn't exist yet. Notice the file path in the
bottom bar.

I tried it and got the following: 

$ bar.xiki bookmarks books.xiki commands demo.xiki disk.xiki email.xiki examples.xiki foo.xiki git.xiki html
.xiki links.xiki ls.xiki mac.xiki memorize.xiki misc notes.xiki postgres.xiki ps.xiki sample_project.xiki se
arch_for_notes.xiki sessions sqlite3.xiki tables.xiki tutorial.xiki xiki_private_beta.xiki xsh.xiki
  | bash: line 16: bar.xiki: command not found

Kurt

unread,
Oct 11, 2016, 7:38:57 PM10/11/16
to Xiki
hmmm, and now I get that "command not found" output from just launching xsh (either via % xsh, or by ctrl-G)

Craig Muth

unread,
Oct 11, 2016, 9:25:13 PM10/11/16
to xi...@googlegroups.com
> now I get that "command not found" output from just launching xsh (either via % xsh

Are you saying that now when you just run the "xsh" command in your
shell, you get "bash: line 16: bar.xiki: command not found"?

> I tried it and got the following:
> $ bar.xiki bookmarks books.xiki commands [...]

This sounds related to zsh handling the "^" character strangely when
an obscure is setting is set (extendedglob). What do you see when you
run "echo ^"? When you run "setopt", is "extendedglob" part of the
output?

Xsh checks for this option when the shell loads, and should make
Ctrl+G run "xsh \^" instead of "xsh ^" when it's set. Is the "source
~/.xsh" line in your .zshrc file maybe located below lines that load
rvm?

--Craig
> --
> You received this message because you are subscribed to the Google Groups
> "Xiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to xiki+uns...@googlegroups.com.
> To post to this group, send email to xi...@googlegroups.com.
> Visit this group at https://groups.google.com/group/xiki.
> For more options, visit https://groups.google.com/d/optout.

Kurt

unread,
Oct 12, 2016, 4:28:27 PM10/12/16
to Xiki


On Tuesday, October 11, 2016 at 6:25:13 PM UTC-7, Craig wrote:
> now I get that "command not found" output from just launching xsh (either via % xsh

Are you saying that now when you just run the "xsh" command in your
shell, you get "bash: line 16: bar.xiki: command not found"?

yes.
 

> I tried it and got the following:
> $ bar.xiki bookmarks books.xiki commands [...]

This sounds related to zsh handling the "^" character strangely when
an obscure is setting is set (extendedglob). What do you see when you
run "echo ^"?  

% echo ^
zsh: no matches found: ^ 

When you run "setopt", is "extendedglob" part of the
output?

Yes 
 

Xsh checks for this option when the shell loads, and should make
Ctrl+G run "xsh \^" instead of "xsh ^" when it's set. Is the "source
~/.xsh" line in your .zshrc file maybe located below lines that load
rvm?

Trying to figure that out now. There's too much clutter between my .zshrc and my .bash_profile and .bashrc

Craig Muth

unread,
Oct 13, 2016, 2:25:57 PM10/13/16
to xi...@googlegroups.com
Could we possibly do a Skype session sometime today to try to figure
this out? I have an idea for how to make xiki proactively detect this
setting, but would like to make sure it addresses it in your case
before implementing it. If you have time, possibly we could pair on
the fix as well :)

--Craig

Iachetti Federico Martín

unread,
Oct 13, 2016, 3:45:31 PM10/13/16
to xi...@googlegroups.com
http://livecoding.tv

Don't forget to send me the link ;)

Federico Martín Iachetti


> To post to this group, send email to xi...@googlegroups.com.
> Visit this group at https://groups.google.com/group/xiki.
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Xiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xiki+unsubscribe@googlegroups.com.

Craig Muth

unread,
Oct 13, 2016, 5:55:12 PM10/13/16
to xi...@googlegroups.com
Heh, our session probably wouldn't have made for super exciting video
:) Will have to keep livecoding.tv in mind though!

--Craig

Craig Muth

unread,
Oct 13, 2016, 6:11:11 PM10/13/16
to xi...@googlegroups.com
Here's a temporary fix:

https://xiki.com/@trogdoro/zsh/temporary-fix-for-ctrl-g-error-in-zsh

The longer term fix will be finding an alternative to using "^" in
shell commands. Federico and I ran into this problem initially and
figured out a fix, but apparently "^" is flakier in zsh than
anticipated. It seems like it's rvm that is setting EXTENDED_GLOB to
true and causing this problem - pretty unfortunate...

Thanks for helping me work through this. Let me know if the link above works!

--Craig

Iachetti Federico Martín

unread,
Oct 13, 2016, 6:13:29 PM10/13/16
to xi...@googlegroups.com
You will



Federico Martín Iachetti


>> > To post to this group, send email to xi...@googlegroups.com.
>> > Visit this group at https://groups.google.com/group/xiki.
>> > For more options, visit https://groups.google.com/d/optout.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Xiki" group.
>> To unsubscribe from this group and stop receiving emails from it, send an

>> To post to this group, send email to xi...@googlegroups.com.
>> Visit this group at https://groups.google.com/group/xiki.
>> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Xiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an

> To post to this group, send email to xi...@googlegroups.com.
> Visit this group at https://groups.google.com/group/xiki.
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Xiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xiki+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages