fmoralesc / neovim-gnome-terminal-wrapper Goto Github PK
View Code? Open in Web Editor NEWWrapper for running neovim in a separate instance of gnome-terminal
Wrapper for running neovim in a separate instance of gnome-terminal
Thank you for creating this wrapper! It is really neat and has replaced gVim in my daily work.
One minor thing bugs me, though - when I have my terminal open in a project dir and want to open a file in that dir, I would usually just type vim filename.py
and it would pop open. Now when I use nvim-wrapper, it always opens in my home dir, so in order to open a file in my current working dir, I have to nvim-wrapper ~/path/to/dir/filename.py
, which is a quite a few extra keystrokes.
Is there a way to make the wrapper aware of current working dir when called from the command line?
this wrapper is with Python 3. This give me a problem when I use pyenv and I am with a virtualenv active with pyenv and this for virtualenv is a Python 3.6 dialect.
to solve this, I need to install python dependencies (python-dbus) inside the new virtualenv, or change the launch script to invoke/call directly /usr/bin/python3 not /usr/bin/env python3 that pyenv change.
On Ubuntu 15.10, when using nvim-wrapper from a terminal, a message gets printed out to the terminal upon a startup:
Failed to register: Unable to acquire bus name 'org.neovim'
This doesn't seem to impact the behaviour, yet is a little annoying (mostly because I'm left with an empty line instead of a usual shell prompt).
Following progress of resolution here: https://bugzilla.gnome.org/show_bug.cgi?id=760944
Gtk-WARNING **: Allocating size to GtkScrollbar 0x562ddb88d1f0 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate?
I get the above warning whenever I resize the nvim-wrapper window. GNOME terminal version: 3.20.2.
I'm currently running Lubuntu and although I haven't tried setting this up for my system, I was wondering if it would be different than the manual way described in the README.md?
Hey guys,
Thanks for this cool / simple app!
I have two issues that are visible in following screenshot:
I'm happy to send a PR but I'm not sure how to fix it.
I use this wrapper as my default app to open various text files from my File Manager. The problem is sometimes I use a terminal file manager (nnn) or directly the shell to open a file using xdg-open. I noticed that when using xdg-open (used also by nnn) the file is opened in nvim inside the current terminal. This is not a problem when using xdg-open directly, but it becomes a problem every times xdg-open is executed by another program like nnn because the terminal get stuck: the file is not opened and the other program becomes unresponsive. Is there a workaround for this problem? Thank you in advance.
When starting up the nvim wrapper neovim is unable to find a few binaries I exported to $PATH in my zshrc. This mostly includes packages I manually installed in /opt. I can get around the issue by manually updating the $PATH environment variable in the nvim-wrapper python file. For obvious reasons, this is less than ideal as I would have to update this everytime I modify/add a new package manually. Is there some way to auto import the $PATH defined in .zshrc as I assume this works for bash users?
I hoped that I will have icon even in the Alt-TAB menu, but apparently i don’t:
This is my .desktop file:
[Desktop Entry]
GenericName=Neovim (gnome-terminal)
Version=1.0
Type=Application
Name=Neovim (gnome-terminal)
Icon=/usr/share/icons/hicolor/scalable/neovim.svg
Exec=nvim-wrapper %F
NoDisplay=false
Categories=X-GNOME-Other;Utility;TextEditor;
StartupNotify=false
Terminal=false
MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;
X-GNOME-SingleWindow=false
I've just ran into an issue that I'm not able to recover neovim's session when accidentally pressing Ctrl+Z. When I'm in terminal it's just ok but because wrapper is running directly nvim process it leads to this strange situation (starring at blank screen and trying to figure out what just happened).
Do you have any idea if it's solvable somehow?
It doesn't happen often but if it happens it's quite frustrating, especially if you have several unsaved buffers "locked" inside.
I'm having a weird bug where the colorscheme isn't getting set correctly. It works when I launch neovim myself from a gnome-terminal and if I do :colorscheme solarized
it fixes it but it looks like the default theme. Even the internal variable is set at solarized
so I'm not sure what's happening. Can you think of anything? I looked through the script but I can't see anything apparent that'll cause it. Is it happening on your end too?
Sometimes when I save a file, or resize a window I see some garbled text on the screen. Usually a screen resize will clear it.
Not sure if it's an upstream issue or not, or even if there's anything you can do, but I've only seen it using the gnome-terminal wrapper, and not in a terminal on it's own, so I figured I'd open an issue.
thanks,
Hi Felipe,
I appreciate your work on this wrapper. I find out that following could be useful improvements:
Particulary I would like to configure:
What do you think?
I'll try to prepare pull-request if I find some free time. Currently I've just updated nvim-wrapper directly according to my needs and installed it as different package through makepkg/pacman.
OS: Ubuntu 16.04
Neovim 2.0dev
Gnome Terminal 3.18.3
I was finding that I would occasionally press Ctrl + Z and get stuck in a blank screen. With regular neovim, this would normally exit and return to the parent terminal. With the neovim-gnome-terminal-wrapper, the user gets stuck in an unresponsive terminal-like window (esc, ctrl + c, exit, :q and :q! all do nothing).
I put noremap <c-z> <esc>
in my $MYVIMRC to avoid problems from accidentally pressing CTRL + Z, it seems to be a good solution. I think it should be incorporated, but interested in hearing thoughts.
Hi,
my custom $PATH from .bashrc is not recognised by the wrapper. How can I do that?
Thanx
I'm using NPM packages for some of my plugins (tern, coffeescript, coffeeline, etc). Normally the their path is loaded by my .bashrc but when I start Neovim I'm noticing that none of these are available. Is there a straight-forward way to get it to read in my exports?
Apparently the files have a different location on Ubuntu. Following the installation instructions gives the following error:
nvim-wrapper crashed with FileNotFoundError in _execute_child():
[Errno 2] No such file or directory: '/usr/lib/gnome-terminal/gnome-terminal-server'
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.