Skip to content

Can we avoid reserving <F24>? #26

@wookayin

Description

@wookayin

In the plugin code,

" When Tmux 'focus-events' option is on, Tmux will send <Esc>[O when the
" window loses focus and <Esc>[I when it gains focus.
exec "set <F24>=\<Esc>[O"
exec "set <F25>=\<Esc>[I"

where we have a normal map

nnoremap <silent> <F24> :silent doautocmd <nomodeline> FocusLost %<CR>
nnoremap <silent> <F25> :doautocmd <nomodeline> FocusGained %<CR>

However, I would like to use <F24> for another mapping. In some terminals (e.g. xterm-256color) & neovim environments, <F24> is <Shift-F12>. As this plugin reserves for <Esc>[O, I cannot map custom commands to <Shift-F12>. Is the choice of or compulsory, or can we use another special key sequence?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions