scopatz / xo Goto Github PK
View Code? Open in Web Editor NEWexofrills text editor
Home Page: http://exofrills.org/
License: Do What The F*ck You Want To Public License
exofrills text editor
Home Page: http://exofrills.org/
License: Do What The F*ck You Want To Public License
Hi
how can I change xo's color scheme? On the default Ubuntu terminal (black on white background) I cannot see anything in xo. Second question: which is the meta key? Gnome intercepts the "windows" key.
Best
Stefan
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?
Forcing the background color is probably the easiest fix.
This is very low priority, as I'm unlikely to actually use exofrills. I may howver steal large parts code for use in an editor/IDE, because I do want more frills. :-)
Recently when I've tried using the xo xontrib in xonsh, it has started just freezing - it doesn't load anything, it just sits there on the line after the command to run xo until I hit ctrl+c to try and close out and try again/something else. Event then hitting ctrl+c doesn't always exit the call to xo and I have to restart xonsh.
I'm not entirely sure what may have caused this, though I suspect it may be something related to upgrading xo from 0.1.11 to 0.1.13
Tested using xonsh 5.2 and 5.3, Ubuntu 14.04, python 3.4, xonsh and xo/exofrills installed using pip (for python 3.4).
I also tried unloading the xo xontrib and running the stand-alone xo command and that works just fine.
Only other xontrib loaded in xonsh is apt_tabcomplete which seems to work just fine as well.
I did a test, when I open a file, and then close it as quickly as I can using CTRL-X
, and measure how long it takes (closing is immediate, the startup time is long):
certik@redhawk:~/repos/xo(master)$ time xx/bin/xo xo.py
real 0m1.895s
user 0m1.044s
sys 0m0.048s
certik@redhawk:~/repos/xo(master)$ time xx/bin/xo xo.py
real 0m1.359s
user 0m1.040s
sys 0m0.036s
certik@redhawk:~/repos/xo(master)$ time xx/bin/xo xo.py
real 0m1.426s
user 0m1.056s
sys 0m0.040s
certik@redhawk:~/repos/xo(master)$ time xx/bin/xo xo.py
real 0m1.418s
user 0m1.020s
sys 0m0.052s
certik@redhawk:~/repos/xo(master)$ time xx/bin/xo xo.py
real 0m1.408s
user 0m1.044s
sys 0m0.036s
certik@redhawk:~/repos/xo(master)$ time xx/bin/xo xo.py
real 0m1.421s
user 0m1.048s
sys 0m0.028s
certik@redhawk:~/repos/xo(master)$ time xx/bin/xo xo.py
real 0m1.281s
user 0m1.068s
sys 0m0.040s
certik@redhawk:~/repos/xo(master)$ time xx/bin/xo xo.py
real 0m1.362s
user 0m1.036s
sys 0m0.040s
certik@redhawk:~/repos/xo(master)$ time xx/bin/xo xo.py
real 0m1.442s
user 0m1.036s
sys 0m0.068s
The best time is 1.281s. Compare to Vim:
certik@redhawk:~/repos/xo(master)$ time vim xo.py
real 0m0.386s
user 0m0.088s
sys 0m0.008s
certik@redhawk:~/repos/xo(master)$ time vim xo.py
real 0m0.282s
user 0m0.084s
sys 0m0.008s
certik@redhawk:~/repos/xo(master)$ time vim xo.py
real 0m0.354s
user 0m0.068s
sys 0m0.012s
certik@redhawk:~/repos/xo(master)$ time vim xo.py
real 0m0.328s
user 0m0.092s
sys 0m0.004s
Best time 0.282s, and I have to press ZZ
, which is slower than CTRL+X
.
Conclusion: xo
takes 1s more to start than vim
on my machine. Vim is immediate (the 0.2s is the time it takes me to pres ZZ
), while xo
literally takes a second to start.
I tried installing it on my mac with pip3. It successfully finished installing but when tried to run I got dependency errors:
Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
from collections import deque, Mapping, Sequence
and
Traceback (most recent call last):
File "/usr/local/bin/xo", line 34, in
import urwid
ModuleNotFoundError: No module named 'urwid'
and
Traceback (most recent call last):
File "/usr/local/bin/xo", line 36, in
import pygments_cache
ModuleNotFoundError: No module named 'pygments_cache'
The last two I could solve by pip install urwid and pygments_cache
. But the first one I don't know how to solve.
I think I know how to do this....
Hello.
Tried to open rc.json right after installing and it wasn't successful:
> xo --rc
Traceback (most recent call last):
File "/home/delameter/.local/bin/xo", line 1122, in <module>
main()
File "/home/delameter/.local/bin/xo", line 1109, in main
with open(RC_PATH) as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/delameter/.config/xo/rc.json'
Installed with pip install exofrills
(i.e. user installation)
> mkdir /home/delameter/.config/xo
> touch /home/delameter/.config/xo/rc.json
> xo --rc-edit
Warning: rc file not valid JSON.
(empty file)
Maybe something like writing default config if current is empty should be implemeneted?
The steps to reproduce.
I noticed this bug when fixed #18 I will try and generate a pull request ASAP.
Hi! Thank you for the useful xontrib!
Please add xonsh
and xontrib
tags to the repo:
It helps spread the word about xontrib on Github.
Thanks!
Currently xo
on its own will fail with a trace back
As @scopatz mentioned in PR #28
To replicate:
xo.py
itself)The file will have grown an extra newline at the end even if it has a newline at the end. This is probably a bug in the code that is supposed to ensure that a file always ends with a newline.
Dear mate, the Jedi code has some API changes -- therefore you Jedi code is broken in Cpython 3.11.
Cheers,
Stephan
This should be forbidden in the setup script - it's very annoying for new users trying the editor and getting a bogus TypeError.
Installing xo through pip doesn't install any dependencies. Please add them to setup.py.
The repo https://github.com/scopatz/xo says "exofrills text editor http://exofrills.org/", but http://exofrills.org/ says "The page isn't redirecting properly" in my Firefox.
Steps to reproduce
Result:
Expected result:
When pressing 'end' to jump to the end of a line, the column count in the status bar does not update until the cursor next moves with an arrow key press etc.
'home' key works as expected.
Using xo from pip3
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.