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

Support for g:fzf_action to change hotkeys. #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

noyez
Copy link

@noyez noyez commented Jan 5, 2022

As a warning, i have never written vim files before so this is a first-cut.

With fzf, if you specify the following (which is the default):

let g:fzf_action = {
  \ 'ctrl-t': 'tab split',
  \ 'ctrl-x': 'split',
  \ 'ctrl-v': 'vsplit' }

It is possible to override the default hotkey for opening files from the fzf view using g:fzf_action.
In my case i have ctl-x already mapped to an action, so i cannot open
a file in split-view using fzf/skim. Changing the g:fzf_action allows
me to change the hotkey for split-view to ctrl-e (or anything)

let g:fzf_action = {
  \ 'ctrl-t': 'tab split',
  \ 'ctrl-e': 'split',
  \ 'ctrl-v': 'vsplit' }

With fzf, if you specify the following (which is the default):
```
let g:fzf_action = {
  \ 'ctrl-t': 'tab split',
  \ 'ctrl-x': 'split',
  \ 'ctrl-v': 'vsplit' }
```

It is possible to override the default hotkey for opening files from the fzf view using `g:fzf_action`.
In my case i have `ctl-x` already mapped to an action, so i cannot open
a file in split-view using fzf/skim. Changing the `g:fzf_action` allows
me to change the hotkey for split-view to `ctrl-e` (or anything)

```
let g:fzf_action = {
  \ 'ctrl-t': 'tab split',
  \ 'ctrl-e': 'split',
  \ 'ctrl-v': 'vsplit' }
```
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

Successfully merging this pull request may close these issues.

1 participant