Giter VIP home page Giter VIP logo

Comments (17)

wwwdata avatar wwwdata commented on August 25, 2024 17

If anybody else still has this problem and is using iTerm2 and neovim. You can also configure iTerm2 to send an escape sequence, then alt+a and alt+d will also work, see my screenshot! That's how I did it ๐Ÿ˜„

screen shot 2016-07-26 at 16 14 17

from fzf.vim.

Abdullah-F avatar Abdullah-F commented on August 25, 2024 3
screen shot 2017-12-09 at 11 25 34 am
  • Esc+

It is not working macOS 11.5, I opened the key settings in iterm2 profiles, then checked the two Esc+ buttons but still Alt-a does not select all when running Rg query

let $FZF_DEFAULT_OPTS = '--bind ctrl-a:select-all,ctrl-d:deselect-all' doing this made it work with ctrl key binding, but the option key is not working.

from fzf.vim.

rainerborene avatar rainerborene commented on August 25, 2024 2

ALT-A and ALT-D generates รกรฃ characters respectively. Any ideas?

from fzf.vim.

junegunn avatar junegunn commented on August 25, 2024 2

screen shot 2017-12-09 at 11 25 34 am

  • Esc+

from fzf.vim.

Abdullah-F avatar Abdullah-F commented on August 25, 2024 1
screen shot 2017-12-09 at 11 25 34 am
  • Esc+

It is not working macOS 11.5, I opened the key settings in iterm2 profiles, then checked the two Esc+ buttons but still Alt-a does not select all when running Rg query

from fzf.vim.

junegunn avatar junegunn commented on August 25, 2024

Yeah, in my case I was constantly annoyed by CTRL-A not moving my cursor to the front, which I do frequently to prepend ' to the query. The keys are not currently configurable, but I'm just going to change them to ALT-A and ALT-D.

from fzf.vim.

chaoren avatar chaoren commented on August 25, 2024

Cool, thanks!

from fzf.vim.

chaoren avatar chaoren commented on August 25, 2024

Do alt keys work in your terminal at all (e.g., ALT-C)? Check your
terminal settings, there should be a setting for sending meta keys.

from fzf.vim.

junegunn avatar junegunn commented on August 25, 2024

neovim/neovim#2440

It's a known issue of neovim and it doesn't look like it's going to be fixed soon-ish. Hmm, maybe I should make the keys configurable for nvim users.

from fzf.vim.

rainerborene avatar rainerborene commented on August 25, 2024

Yes, that is a neovim issue indeed. Most options on fzf#vim functions are hardcoded, even for ag and fzf itself. How can we make those options configurable?

from fzf.vim.

junegunn avatar junegunn commented on August 25, 2024

Excerpt from README:

This repository is a bundle of fzf-based commands and mappings extracted from my .vimrc to address such needs. They are not designed to be flexible or configurable, and there's no guarantee of backward-compatibility.

:)

This repository simply provides too many features and trying to make every aspect of it configurable will inevitably make it a big mess. I currently encourage the users to fork it and bend it to their needs. But I do know that many users are not familiar with Vimscript, and I'll think about the options. (and that's the reason I left this issue open.)

from fzf.vim.

junegunn avatar junegunn commented on August 25, 2024

By the way, you can already override the default options as each function will append the extra options provided to the default set of options:

call fzf#vim#ag('query', {'options': '--bind ctrl-a:select-all,ctrl-d:deselect-all'})

from fzf.vim.

rainerborene avatar rainerborene commented on August 25, 2024

I agree with you. But at least explain users how they should override current behavior i.e.

command! Search call fzf#vim#ag(<-qargs>, {
  \ 'ag_command': 'ag --hidden %s',
  \ 'fzf_command': 'fzf -m'
  \ })

Better defaults and more flexible overriding instead of a bunch of options.

from fzf.vim.

junegunn avatar junegunn commented on August 25, 2024

fzf#vim#ag in particular takes a variable number of arguments, and ag options can be also given as follows:

call fzf#vim#ag('query', '--hidden', {'options': '--bind ctrl-a:select-all,ctrl-d:deselect-all'})

Note that overriding some default options can break the feature as they may affect the sink implementation.

from fzf.vim.

rainerborene avatar rainerborene commented on August 25, 2024

I see. Only problem of fzf#vim#ag function is that escapes the <q-args> by default. If there were an option to disable that it would solve issue #27

from fzf.vim.

rainerborene avatar rainerborene commented on August 25, 2024

Nevermind. I'll use your :Grep command ;)

from fzf.vim.

panosl avatar panosl commented on August 25, 2024
screen shot 2017-12-09 at 11 25 34 am
* `Esc+`

I enabled this and still opt+a don't seem to be working for :Rg select all. Has anyone found a workaround?

from fzf.vim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.