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

problem with tab complete in shell #1136

Closed
fkgruber opened this issue Aug 3, 2017 · 11 comments
Closed

problem with tab complete in shell #1136

fkgruber opened this issue Aug 3, 2017 · 11 comments

Comments

@fkgruber
Copy link

fkgruber commented Aug 3, 2017

Hi
I've been having some issues sometimes when I try to do tab complete on a shell and the windows is small.
Is there some adjustment to deal with cases like these?

For example, of the windows is big enough it works:
image

but if I shrink the windows a bit the tab complete just breaks. How to fix this?

image

Sometimes it works a partially:
image

@abo-abo abo-abo closed this as completed in f9c5149 Aug 4, 2017
@abo-abo
Copy link
Owner

abo-abo commented Aug 4, 2017

Thanks. I've added a fall back to minibuffer for this situation.

@fkgruber
Copy link
Author

fkgruber commented Aug 6, 2017

Great thanks. is this change updated on melpa?

@abo-abo
Copy link
Owner

abo-abo commented Aug 6, 2017

Yes. MELPA updates every 4 hours.

@fkgruber
Copy link
Author

fkgruber commented Aug 7, 2017

Which packages need to be updated? I updated ivy and counsel but I still see the same issue:
if I tab after ls fig_
image

I get
image

@abo-abo
Copy link
Owner

abo-abo commented Aug 7, 2017

Just remove the package from elpa/ directory manually and restart/reinstall.

@fkgruber
Copy link
Author

I tried removing ivy and counsel and reinstalling and I still see the same issue. how can I check the version that is installed to make sure I'm using the right one?
doing:
image
I get:
image

@fkgruber
Copy link
Author

alternatively is there a way to disable ivy in a particular buffer while keeping it active in the rest?

@abo-abo
Copy link
Owner

abo-abo commented Aug 16, 2017

You can use:

(setq ivy-display-functions-alist nil)

But as far as I can see, the issue was fixed. If you can provide a reproducible scenario with emacs -Q, let me know.

@fkgruber
Copy link
Author

fkgruber commented Aug 17, 2017

I ran emacs -Q
then executed

(package-initialize)
(ivy-mode 1)
(setq ivy-use-virtual-buffers t)
(setq enable-recursive-minibuffers t)

then I opened a second windows in the frame
opened a shell M-x shell

then make the shell window small using C-x ^

This breaks tab complete or C-M-i

Interestingly this does not happen in eshell. In eshell tab complete simply ignores ivy and C-M-i complete elisp commands and works fine.

@fkgruber
Copy link
Author

Hi
I used
(setq ivy-display-functions-alist nil)
to disable to options in-place ad use the minibufer instead. But how to do I go back to the default?

thanks

abo-abo added a commit that referenced this issue Sep 11, 2017
@abo-abo
Copy link
Owner

abo-abo commented Sep 11, 2017

The previous fix was for the situation when there's not enough horizontal space.

The current fix is for the situation when there's not enough vertical space.

Please test again.

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

2 participants