Comments (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 ๐
from fzf.vim.
![]()
Esc+
It is not working
macOS 11.5
, I opened the key settings in iterm2 profiles, then checked the twoEsc+
buttons but stillAlt-a
does not select all when runningRg 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.
ALT-A
and ALT-D
generates รกรฃ characters respectively. Any ideas?
from fzf.vim.
Esc+
from fzf.vim.
![]()
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.
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.
Cool, thanks!
from fzf.vim.
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.
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.
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.
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.
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.
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.
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.
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.
Nevermind. I'll use your :Grep
command ;)
from fzf.vim.
![]()
* `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)
- [Rg] Is there a way to open the file and navigate to a line without having paths and line numbers in the output? HOT 1
- GitBranchFiles ?
- :Tags<cr>Query behaves differently from :Tags Query<cr> HOT 6
- The preview window pops up and then crashes before you can see it clearly on Windows 10 HOT 8
- [bug] :Commands command do not fuzzy find in windows HOT 2
- [bug] g:fzf_vim.preview_bash forced to always use backlash in windows
- Show enclosing object for line in preview window
- Use <C-enter> in fzf_actions HOT 2
- Errors running any command inside neovim HOT 4
- rfv works in vim HOT 1
- Using Ctrl+R to paste from a register in the fzf window
- support skim/fzy as fzf is really too slow HOT 14
- tagpreview.sh - preview error with awk syntax error HOT 3
- BCommits Ctrl+D suddenly doesn't work properly HOT 3
- suggestion: refuse to open `:Files` (and other commands) if `'hidden'` is off and window has unsaved changes HOT 2
- Cursor does not stop blinking after :FZF (Windows, Git Bash)
- Get current fzf.vim colorscheme HOT 2
- Files ignores multiselection on Enter HOT 1
- abbreviate long paths with --with-nth chages search results HOT 1
- Preview window crashes for :Files and :RG HOT 17
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fzf.vim.