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

Not saving #10

Open
ptone opened this issue Apr 24, 2014 · 8 comments
Open

Not saving #10

ptone opened this issue Apr 24, 2014 · 8 comments

Comments

@ptone
Copy link

ptone commented Apr 24, 2014

I've tried this a few ways, both with pypi and github version - saving doesn't seem to happen:

b8e8561349da:tmp$ mktmpenv -p /usr/local/bin/python3

...Cleaning up...

This is a temporary environment. It will be deleted when you run 'deactivate'.
(9c5c68941227cfc8)b8e8561349da:9c5c68941227cfc8$ pip install -e git+https://github.com/scopatz/xo.git#egg=xo

...

Successfully installed xo Pygments urwid

(9c5c68941227cfc8)b8e8561349da:9c5c68941227cfc8$ xo foo.py

# wrote hello world, then ^o then ^x

(9c5c68941227cfc8)b8e8561349da:9c5c68941227cfc8$ more foo.py 

# nothing?
@scopatz
Copy link
Owner

scopatz commented Apr 24, 2014

What is the output of cat foo.py?

@ptone
Copy link
Author

ptone commented Apr 24, 2014

nothing - I can edit the file, add stuff with nano - shows up fine - add stuff with xo, just doesn't get written. Acting like the keyboard binding not working, but ^x fine in xo, and ^o works as expected in nano...

@scopatz
Copy link
Owner

scopatz commented Apr 30, 2014

Hmmm I really don't understand this. What version of Python are you on?

@ptone
Copy link
Author

ptone commented May 1, 2014

This was on a brew'd 3.3.3 - but just reproduced on 3.4

Tried it on a Ubuntu EC2 with no issue, so something on my machine - but not sure what it could be, no good idea on how to debug, and honestly not worried about it other than trying to help you track it down if you are interested.

https://dl.dropboxusercontent.com/u/22765108/screencast-bug.mov

@scopatz
Copy link
Owner

scopatz commented Jun 10, 2014

Very strange. I am not sure that I can really expend the time debugging this right now. I'll leave this issue open in case it comes up again.

@scopatz
Copy link
Owner

scopatz commented Jun 10, 2014

This is very strange. It seems like it is not saving at all? I am assuming that you hitting Ctrl+o in the demo here. It should pop up with a "saved!" status message in the lower left when you save, but in the video it never does this. Could this be a problem with mac keybindings? What happens when you rebind the save key to another character? You can do this by adding an entry like the following to ~/.config/xo/rc.json

{"keybindings": {"save": "ctrl o"}}

@caheredia
Copy link

I'm experiencing the same issue. I'm on OSX 10.12.6, python 3.6.3. I tried to rebind, but
~/.config/xo/rc.json
returns

/Users/cristian/.config/xo/rc.json: No such file or directory

which xo returns

/Users/cristian/anaconda/bin/xo

@blackary
Copy link

blackary commented Feb 5, 2021

You can do this by adding an entry like the following to ~/.config/xo/rc.json

I tried setting an rc.json file to various different keys, but none of them have any effect.

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

4 participants