Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 19:40
    deeuu commented #3640
  • 15:20
    yishibashi starred xonsh/xonsh
  • 14:35
    stepney141 starred xonsh/xonsh
  • 12:52
    james5deutschland opened #4065
  • 11:31
    takelushi starred xonsh/xonsh
  • 08:50
    jnoortheen commented #4031
  • 07:21
    codecov-io commented #4031
  • 07:16
    codecov-io commented #4013
  • 07:01
    jnoortheen synchronize #4031
  • 06:58
    jnoortheen synchronize #4013
  • Jan 23 18:32
    anki-code commented #4062
  • Jan 23 18:31
    anki-code commented #2338
  • Jan 23 17:53
    aneeshdurg synchronize #4062
  • Jan 23 16:13
    DorianXGH starred xonsh/xonsh
  • Jan 23 15:57
    codecov-io commented #4064
  • Jan 23 15:55
    elbehery95 edited #4064
  • Jan 23 15:54
    elbehery95 edited #4064
  • Jan 23 15:46
    elbehery95 commented #4064
  • Jan 23 15:44
    elbehery95 edited #4064
  • Jan 23 15:40
    elbehery95 commented #4064
anki-code
@anki-code
:new: Folks! The new PR with captured subproc logic changes - xonsh/xonsh#3926
Please review. Maybe you have special cases or examples around this changes.
CaféHaine
@cafehaine
unfortunately this still doesn't behave like bash's $()
My use case for $() is for the following command:
yay -Rcs $(yay -Qdtq). This command (on arch linux with yay installed) makes each line of the output of $(yay -Qdtq) an argument for yay -Rcs, but xonsh doesn't seem to split arguments on newlines/spaces
8 replies
anki-code
@anki-code
Thanks @cafehaine ! Good point.
halloleo
@halloleo
@laloch In the github discussion on $() I found teh following code snippet: abbrevs["$$"] = '@($(<edit>).rstrip("\\n"))'. What does the <edit> part mean and is it somewhere documented?
4 replies
halloleo
@halloleo
Ups, sorry for the pasted "rubbish" didn't see it when posting from the iPad app. Will try to remove it when back on a computer.
Raphael Das Gupta
@das-g

Re https://github.com/xonsh/xonsh/pull/3926#issuecomment-716235905

It looks like there was a lot of discussion already over here

No. In this questions there is a lack of feedback but it's core question.

Lack of feedback? Both issue #3924 and PR #3926 are mere 2.5 days old and have received comments since. Give things some time, @anki-code. Not all of us contribute to Xonsh 24/7.

anki-code
@anki-code

@das-g Thanks for your attention! It's appreciated. I know. But I see by another issues past year that activity is very low.

Anthony wrote:

But the bigger the effects of the change, like with subprocess syntax, the more people are going to need to weigh in on the pros/cons and the more forethought will need to be put into it.

And because the change is very closer to core I mentioned contributors. Sad but xonsh hasn't another ways. No social network publics or something like this.

Raphael Das Gupta
@das-g
Well, that's why it was suggested to set up a Xonsh enhencement proposal (XEP) process. Part of that would have to be on how to get the attention of the relevant stakeholders.
anki-code
@anki-code
Anthony writes short answers and many of them are not clear and sometimes he doesn't clearly understand the question or code because he has lack of time. I understand and appreciate his time and I try to ask xore feedback but hear silence in most cases. I'm not in hurry I'm just try to open contructive dialogue.
In case of XEP there are no links about what is it and what I should to do. Google shows nothing.
Raphael Das Gupta
@das-g
Sorry, that was maybe unclear: The Xonsh community doesn't yet have a defined process on how to handle enhancement proposals. (At all, so not just related to your proposal.) It though seems like such a process would be needed, so the fist step would be to define such a process.
Once that process has been defined, your proposal could be handled according to it.
anki-code
@anki-code
Got it, thanks! We're working hard to make complete description in #3924. It's not the XEP process description it's a complete subproc substitution approaches overview. If anyone know enogh how to build XEP process this should be described in distinct issue and will be great.
anki-code
@anki-code
:newspaper: After a month of waiting and approving, xonsh was added to awesome-python list - the second "awesome" list by count of stars in "awesome" community. Thanks to all who put the like and support the pull request! :tada:
1 reply
halloleo
@halloleo
I'm back on xonsh keybindings via prompt-toolkit: I looking for keybindings like Right Key for accepting the suggestion from the history when you start typing. Where is that in the source code? (I looked for @bindings.add, but couldn't find it.)
3 replies
halloleo
@halloleo
So the Autosuggestion key binding is set in ptk? Alright. But where are all these shortcuts then documented? Somehow couldn't find it in the ptk readthedocs ...
And I don't mean the list of possible keys but the actual keys used (like Right for accept autosuggest, C-e fir end of line, etc, etc).
David Strobach
@laloch
Yeah, the PTK docs are not that comprehensive in this respect. Just read the source :wink:
halloleo
@halloleo
@laloch Fair enough.
The PTK docs talk about vi and emacs bindings. Which ones are choosen for xonsh? For me C-e goes to the end of the line which matches what Emacs does, so I guess xonsh uses Emacs style, right?
Anthony Scopatz
@scopatz
There is a $VI_MODE env var that lets you switch between them, IIRC
halloleo
@halloleo
Thanks. Just found in ptk that C-e in autosuggest mode does the same as Right key. Handy. Even better ESC-f does partial autosuggest completion! :-)
halloleo
@halloleo
When using prompt-toolkit, how can I select a filename completion without executing it? let's say I have a dir with two file file1.txt and file2.txt.
I type ls file hit tab and get a list with file1.txt and file2.txt. With the cursor keys I can select one. Now when I confirm the selection with enter it completes as I want, but executes the statement as well. How can I just confirm without executing, so that I can type more stuff in that line?
7 replies
Anthony Scopatz
@scopatz
Hey all! Just FYI, I am on holiday this week, so that is why I am a little slow responding to issues & PRs
3 replies
eggcaker
@eggcaker
176011604479074_.pic_hd.jpg
Hi all, I want use the xontrib-kitty to display the chart on kitty terminal ,after load the xontrib-kitty make a simple plt.plot(range(10)), i got a very big chart like this, did I missing some setup ?
Anthony Scopatz
@scopatz
That looks like the matplotlib xontrib
anki-code
@anki-code
:new: New xontrib-hist-format - to get commands and output from history as Markdown and post it to Github in copy-pastable manner.
eggcaker
@eggcaker
@scopatz ??
Anthony Scopatz
@scopatz
It looks like the figsize is wrong for some reason
anki-code
@anki-code
:star2: 4000 stargazers :tada:
Ganesha Sharma
@Ganesha2282882
how do i force manjaro nibia (20.2) to use xonsh? i installed it with pacman and then pip
and chshed it
but logging out and back in did not do anything
CaféHaine
@cafehaine
maybe your terminal is overriding your preferred shell ? is xonsh used in a tty ?
Ganesha Sharma
@Ganesha2282882
it's used in manjaro kde with Konsole and CoolRetroTerm
i wanted to see what happens to uninstall bash but it pacman showed a bunch of package errors
so i did not
to kinda force it to use xonsh
David Strobach
@laloch
@Ganesha2282882 in order for chsh to work, the desired shell must listed in /etc/shells.
CaféHaine
@cafehaine
if @Ganesha2282882 installed it with pacman it would be listed in /etc/shells
otherwise it's needed to add it manually yes
Ganesha Sharma
@Ganesha2282882
yeah, it's in there, here's my etc shells:
# Pathnames of valid login shells.
# See shells(5) for details.

/bin/sh
/bin/bash
/bin/zsh
/usr/bin/zsh
/usr/bin/git-shell
/bin/xonsh
CaféHaine
@cafehaine
did you add it manually ? I'm pretty sure the default path is /usr/bin/xonsh
well, /bin is symlinked to /usr/bin/ in arch, but still
David Strobach
@laloch
This is how the package installs: grep -x /usr/bin/xonsh /etc/shells >/dev/null || echo /usr/bin/xonsh >> /etc/shells
So yeah, it should not be the problem.
Ganesha Sharma
@Ganesha2282882
i don't think so.
find:/run/user/1000/doc’: Permission denied
find:/run/user/1000/gvfs’: Permission denied
/usr/bin/xonsh-cat
/usr/bin/xonsh
/var/cache/pacman/pkg/xonsh-0.9.24-1-any.pkg.tar.zst
from command:
sudo find / | grep xonsh --color=none | grep -v /root | grep -v /usr/lib | grep -v /home
so, it might actually be in /usr
but chsh said it's not in /etc/shells. It did not put a No such file or directory error.
Ganesha Sharma
@Ganesha2282882
i modified my shell and /etc/shells, power cycled 1 time, and it actually booted to Xonsh
*in Konsole