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

validate_layout() does not take --reverse into account. #341

Closed
3 of 9 tasks
mrbiggfoot opened this issue Mar 20, 2017 · 9 comments
Closed
3 of 9 tasks

validate_layout() does not take --reverse into account. #341

mrbiggfoot opened this issue Mar 20, 2017 · 9 comments

Comments

@mrbiggfoot
Copy link

  • Category
    • Question
    • Bug
    • Suggestion
  • OS
    • Linux
    • macOS
    • Windows
    • Etc.
  • Vim
    • Vim
    • Neovim
:echo g:fzf_layout
{'options': '--reverse', 'down': '~40%'}

:History
Error detected while processing function <SNR>16_history[7]..fzf#vim#history[1]..<SNR>50_fzf[18]..<SNR>50_wrap[8]..fzf#wrap[30]..<SNR>15_validate_layout:
line    3:
E605: Exception not caught: Invalid entry in g:fzf_layout: options (allowed: window, up, down, left, right). Use $FZF_DEFAULT_OPTS.
Error detected while processing function <SNR>16_history[7]..fzf#vim#history[1]..<SNR>50_fzf[18]..<SNR>50_wrap[8]..fzf#wrap:
line   30:
E171: Missing :endif
Error detected while processing function <SNR>16_history[7]..fzf#vim#history[1]..<SNR>50_fzf[18]..<SNR>50_wrap:
line    8:
E171: Missing :endif
Error detected while processing function <SNR>16_history:
line    7:
E171: Missing :endif
@mrbiggfoot
Copy link
Author

Looks like it has stopped accepting --reverse as a valid option. Why is that?

@mrbiggfoot
Copy link
Author

Offending commit id: 111d1934c49ac22cf84abf0ada9c24f091fc38cd

@mrbiggfoot mrbiggfoot changed the title 'History' stopped working validate_layout() does not take --reverse into accout. Mar 20, 2017
@mrbiggfoot mrbiggfoot changed the title validate_layout() does not take --reverse into accout. validate_layout() does not take --reverse into account. Mar 20, 2017
@junegunn
Copy link
Owner

junegunn commented Mar 21, 2017

Duplicate of #317 and #327. g:fzf_layout was never designed to take options key. Where did you get the idea? People were misusing it and running into all kinds of problems, so I explicitly disallowed it.

@mrbiggfoot
Copy link
Author

@junegunn how do I get --reverse behavior in the History window then?

@mrbiggfoot
Copy link
Author

Checked out the other two tickets. Will try $FZF_DEFAULT_OPTS way.

@junegunn
Copy link
Owner

junegunn commented Mar 21, 2017

It seems to me that all you guys ended up with more or less the same type of misconfiguration. Did someone suggest the idea?

@mrbiggfoot
Copy link
Author

mrbiggfoot commented Mar 21, 2017 via email

@mrbiggfoot
Copy link
Author

Though I must admit neither way seems elegant to me. I'd prefer to have a function call that takes a dictionary of arguments for position, orientation, key mappings, etc. Setting g:fzf_layout or $FZF_DEFAULT_OPTS is cumbersome. Anyway, I've worked around it. Thanks for fzf @junegunn!

@junegunn
Copy link
Owner

Well, you can do that if you want.
See https://github.com/junegunn/fzf.vim#advanced-customization

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants