1
0
Fork 0

fix definition of filters, check for readtagscmd

This commit is contained in:
Andrey Orst 2020-03-19 09:13:53 +03:00
parent 302045491c
commit 355f05d832

View file

@ -16,13 +16,20 @@ str fzf_tag_file_name "tags"
map global fzf -docstring "find tag" 't' '<esc>: fzf-tag<ret>' map global fzf -docstring "find tag" 't' '<esc>: fzf-tag<ret>'
# this huge try block defines filetype aware filter mappings for separate fzf-ctags mode declare-option -hidden bool fzf_tag_filters_defined false
try %{ try %{
declare-user-mode fzf-ctags declare-user-mode fzf-ctags
map global fzf -docstring "select tag type" '<a-t>' '<esc>: fzf-setup-filter-tags; enter-user-mode fzf-ctags<ret>'
}
map global fzf -docstring "select tag type" '<a-t>' '<esc>: enter-user-mode fzf-ctags<ret>' # this huge try block defines filetype aware filter mappings for separate fzf-ctags mode
define-command -hidden fzf-setup-filter-tags %{
evaluate-commands %sh{
[ "$opt_fzf_tag_filters_defined" = "true" ] && exit
hook global WinSetOption filetype=ada %{ case $kak_opt_filetype in
(ada) printf "%s\n" "
map global fzf-ctags '<a-p>' ': fzf-tag P<ret>' -docstring 'package specifications' map global fzf-ctags '<a-p>' ': fzf-tag P<ret>' -docstring 'package specifications'
map global fzf-ctags 'p' ': fzf-tag p<ret>' -docstring 'packages' map global fzf-ctags 'p' ': fzf-tag p<ret>' -docstring 'packages'
map global fzf-ctags 't' ': fzf-tag t<ret>' -docstring 'types' map global fzf-ctags 't' ': fzf-tag t<ret>' -docstring 'types'
@ -41,16 +48,18 @@ try %{
map global fzf-ctags 'o' ': fzf-tag o<ret>' -docstring 'protected data' map global fzf-ctags 'o' ': fzf-tag o<ret>' -docstring 'protected data'
map global fzf-ctags 'e' ': fzf-tag e<ret>' -docstring 'task/protected data entries' map global fzf-ctags 'e' ': fzf-tag e<ret>' -docstring 'task/protected data entries'
map global fzf-ctags 'b' ': fzf-tag b<ret>' -docstring 'labels' map global fzf-ctags 'b' ': fzf-tag b<ret>' -docstring 'labels'
map global fzf-ctags 'i' ': fzf-tag i<ret>' -docstring 'loop/declare identifiers' map global fzf-ctags 'i' ': fzf-tag i<ret>' -docstring 'loop/set identifers'
map global fzf-ctags '<a-s>' ': fzf-tag S<ret>' -docstring '(ctags internal use)' map global fzf-ctags '<a-s>' ': fzf-tag S<ret>' -docstring '(ctags internal use)'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=ant %{ " ;;
(ant) printf "%s\n" "
map global fzf-ctags 'p' ': fzf-tag p<ret>' -docstring 'projects' map global fzf-ctags 'p' ': fzf-tag p<ret>' -docstring 'projects'
map global fzf-ctags 't' ': fzf-tag t<ret>' -docstring 'targets' map global fzf-ctags 't' ': fzf-tag t<ret>' -docstring 'targets'
map global fzf-ctags '<a-p>' ': fzf-tag P<ret>' -docstring 'properties(global)' map global fzf-ctags '<a-p>' ': fzf-tag P<ret>' -docstring 'properties(global)'
map global fzf-ctags 'i' ': fzf-tag i<ret>' -docstring 'antfiles' map global fzf-ctags 'i' ': fzf-tag i<ret>' -docstring 'antfiles'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=asciidoc %{ " ;;
(asciidoc) printf "%s\n" "
map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'chapters' map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'chapters'
map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'sections' map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'sections'
map global fzf-ctags '<a-s>' ': fzf-tag S<ret>' -docstring 'level 2 sections' map global fzf-ctags '<a-s>' ': fzf-tag S<ret>' -docstring 'level 2 sections'
@ -58,22 +67,25 @@ try %{
map global fzf-ctags '<a-t>' ': fzf-tag T<ret>' -docstring 'level 4 sections' map global fzf-ctags '<a-t>' ': fzf-tag T<ret>' -docstring 'level 4 sections'
map global fzf-ctags 'u' ': fzf-tag u<ret>' -docstring 'level 5 sections' map global fzf-ctags 'u' ': fzf-tag u<ret>' -docstring 'level 5 sections'
map global fzf-ctags 'a' ': fzf-tag a<ret>' -docstring 'anchors' map global fzf-ctags 'a' ': fzf-tag a<ret>' -docstring 'anchors'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=asm %{ " ;;
(asm) printf "%s\n" "
map global fzf-ctags 'd' ': fzf-tag d<ret>' -docstring 'defines' map global fzf-ctags 'd' ': fzf-tag d<ret>' -docstring 'defines'
map global fzf-ctags 'l' ': fzf-tag l<ret>' -docstring 'labels' map global fzf-ctags 'l' ': fzf-tag l<ret>' -docstring 'labels'
map global fzf-ctags 'm' ': fzf-tag m<ret>' -docstring 'macros' map global fzf-ctags 'm' ': fzf-tag m<ret>' -docstring 'macros'
map global fzf-ctags 't' ': fzf-tag t<ret>' -docstring 'types (structs and records)' map global fzf-ctags 't' ': fzf-tag t<ret>' -docstring 'types (structs and records)'
map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'sections' map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'sections'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=asp %{ " ;;
(asp) printf "%s\n" "
map global fzf-ctags 'd' ': fzf-tag d<ret>' -docstring 'constants' map global fzf-ctags 'd' ': fzf-tag d<ret>' -docstring 'constants'
map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'classes' map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'classes'
map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'functions' map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'functions'
map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'subroutines' map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'subroutines'
map global fzf-ctags 'v' ': fzf-tag v<ret>' -docstring 'variables' map global fzf-ctags 'v' ': fzf-tag v<ret>' -docstring 'variables'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=autoconf %{ " ;;
(autoconf) printf "%s\n" "
map global fzf-ctags 'p' ': fzf-tag p<ret>' -docstring 'packages' map global fzf-ctags 'p' ': fzf-tag p<ret>' -docstring 'packages'
map global fzf-ctags 't' ': fzf-tag t<ret>' -docstring 'templates' map global fzf-ctags 't' ': fzf-tag t<ret>' -docstring 'templates'
map global fzf-ctags 'm' ': fzf-tag m<ret>' -docstring 'autoconf macros' map global fzf-ctags 'm' ': fzf-tag m<ret>' -docstring 'autoconf macros'
@ -82,15 +94,17 @@ try %{
map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'substitution keys' map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'substitution keys'
map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'automake conditions' map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'automake conditions'
map global fzf-ctags 'd' ': fzf-tag d<ret>' -docstring 'definitions' map global fzf-ctags 'd' ': fzf-tag d<ret>' -docstring 'definitions'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=autoit %{ " ;;
(autoit) printf "%s\n" "
map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'functions' map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'functions'
map global fzf-ctags 'r' ': fzf-tag r<ret>' -docstring 'regions' map global fzf-ctags 'r' ': fzf-tag r<ret>' -docstring 'regions'
map global fzf-ctags 'g' ': fzf-tag g<ret>' -docstring 'global variables' map global fzf-ctags 'g' ': fzf-tag g<ret>' -docstring 'global variables'
map global fzf-ctags 'l' ': fzf-tag l<ret>' -docstring 'local variables' map global fzf-ctags 'l' ': fzf-tag l<ret>' -docstring 'local variables'
map global fzf-ctags '<a-s>' ': fzf-tag S<ret>' -docstring 'included scripts' map global fzf-ctags '<a-s>' ': fzf-tag S<ret>' -docstring 'included scripts'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=automake %{ " ;;
(automake) printf "%s\n" "
map global fzf-ctags 'd' ': fzf-tag d<ret>' -docstring 'directories' map global fzf-ctags 'd' ': fzf-tag d<ret>' -docstring 'directories'
map global fzf-ctags '<a-p>' ': fzf-tag P<ret>' -docstring 'programs' map global fzf-ctags '<a-p>' ': fzf-tag P<ret>' -docstring 'programs'
map global fzf-ctags '<a-m>' ': fzf-tag M<ret>' -docstring 'manuals' map global fzf-ctags '<a-m>' ': fzf-tag M<ret>' -docstring 'manuals'
@ -99,28 +113,33 @@ try %{
map global fzf-ctags '<a-s>' ': fzf-tag S<ret>' -docstring 'scripts' map global fzf-ctags '<a-s>' ': fzf-tag S<ret>' -docstring 'scripts'
map global fzf-ctags '<a-d>' ': fzf-tag D<ret>' -docstring 'datum' map global fzf-ctags '<a-d>' ': fzf-tag D<ret>' -docstring 'datum'
map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'conditions' map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'conditions'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=awk %{ " ;;
(awk) printf "%s\n" "
map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'functions' map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'functions'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=basic %{ " ;;
(basic) printf "%s\n" "
map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'constants' map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'constants'
map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'functions' map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'functions'
map global fzf-ctags 'l' ': fzf-tag l<ret>' -docstring 'labels' map global fzf-ctags 'l' ': fzf-tag l<ret>' -docstring 'labels'
map global fzf-ctags 't' ': fzf-tag t<ret>' -docstring 'types' map global fzf-ctags 't' ': fzf-tag t<ret>' -docstring 'types'
map global fzf-ctags 'v' ': fzf-tag v<ret>' -docstring 'variables' map global fzf-ctags 'v' ': fzf-tag v<ret>' -docstring 'variables'
map global fzf-ctags 'g' ': fzf-tag g<ret>' -docstring 'enumerations' map global fzf-ctags 'g' ': fzf-tag g<ret>' -docstring 'enumerations'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=beta %{ " ;;
(beta) printf "%s\n" "
map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'fragment definitions' map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'fragment definitions'
map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'slots (fragment uses)' map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'slots (fragment uses)'
map global fzf-ctags 'v' ': fzf-tag v<ret>' -docstring 'patterns (virtual or rebound)' map global fzf-ctags 'v' ': fzf-tag v<ret>' -docstring 'patterns (virtual or rebound)'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=clojure %{ " ;;
(clojure) printf "%s\n" "
map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'functions' map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'functions'
map global fzf-ctags 'n' ': fzf-tag n<ret>' -docstring 'namespaces' map global fzf-ctags 'n' ': fzf-tag n<ret>' -docstring 'namespaces'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=cmake %{ " ;;
(cmake) printf "%s\n" "
map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'functions' map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'functions'
map global fzf-ctags 'm' ': fzf-tag m<ret>' -docstring 'macros' map global fzf-ctags 'm' ': fzf-tag m<ret>' -docstring 'macros'
map global fzf-ctags 't' ': fzf-tag t<ret>' -docstring 'targets' map global fzf-ctags 't' ': fzf-tag t<ret>' -docstring 'targets'
@ -128,8 +147,9 @@ try %{
map global fzf-ctags '<a-d>' ': fzf-tag D<ret>' -docstring 'options specified with -<a-d>' map global fzf-ctags '<a-d>' ': fzf-tag D<ret>' -docstring 'options specified with -<a-d>'
map global fzf-ctags 'p' ': fzf-tag P<ret>' -docstring 'projects' map global fzf-ctags 'p' ': fzf-tag P<ret>' -docstring 'projects'
map global fzf-ctags 'r' ': fzf-tag r<ret>' -docstring 'regex' map global fzf-ctags 'r' ': fzf-tag r<ret>' -docstring 'regex'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=c %{ " ;;
(c) printf "%s\n" "
map global fzf-ctags 'd' ': fzf-tag d<ret>' -docstring 'macro definitions' map global fzf-ctags 'd' ': fzf-tag d<ret>' -docstring 'macro definitions'
map global fzf-ctags 'e' ': fzf-tag e<ret>' -docstring 'enumerators (values inside an enumeration)' map global fzf-ctags 'e' ': fzf-tag e<ret>' -docstring 'enumerators (values inside an enumeration)'
map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'function definitions' map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'function definitions'
@ -140,8 +160,9 @@ try %{
map global fzf-ctags 't' ': fzf-tag t<ret>' -docstring 'typedefs' map global fzf-ctags 't' ': fzf-tag t<ret>' -docstring 'typedefs'
map global fzf-ctags 'u' ': fzf-tag u<ret>' -docstring 'union names' map global fzf-ctags 'u' ': fzf-tag u<ret>' -docstring 'union names'
map global fzf-ctags 'v' ': fzf-tag v<ret>' -docstring 'variable definitions' map global fzf-ctags 'v' ': fzf-tag v<ret>' -docstring 'variable definitions'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=cpp %{ " ;;
(cpp) printf "%s\n" "
map global fzf-ctags 'd' ': fzf-tag d<ret>' -docstring 'macro definitions' map global fzf-ctags 'd' ': fzf-tag d<ret>' -docstring 'macro definitions'
map global fzf-ctags 'e' ': fzf-tag e<ret>' -docstring 'enumerators (values inside an enumeration)' map global fzf-ctags 'e' ': fzf-tag e<ret>' -docstring 'enumerators (values inside an enumeration)'
map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'function definitions' map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'function definitions'
@ -154,17 +175,20 @@ try %{
map global fzf-ctags 'v' ': fzf-tag v<ret>' -docstring 'variable definitions' map global fzf-ctags 'v' ': fzf-tag v<ret>' -docstring 'variable definitions'
map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'classes' map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'classes'
map global fzf-ctags 'n' ': fzf-tag n<ret>' -docstring 'namespaces' map global fzf-ctags 'n' ': fzf-tag n<ret>' -docstring 'namespaces'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=cpreprocessor %{ " ;;
(cpreprocessor) printf "%s\n" "
map global fzf-ctags 'd' ': fzf-tag d<ret>' -docstring 'macro definitions' map global fzf-ctags 'd' ': fzf-tag d<ret>' -docstring 'macro definitions'
map global fzf-ctags 'h' ': fzf-tag h<ret>' -docstring 'included header files' map global fzf-ctags 'h' ': fzf-tag h<ret>' -docstring 'included header files'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=css %{ " ;;
(css) printf "%s\n" "
map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'classes' map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'classes'
map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'selectors' map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'selectors'
map global fzf-ctags 'i' ': fzf-tag i<ret>' -docstring 'identities' map global fzf-ctags 'i' ': fzf-tag i<ret>' -docstring 'identities'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=csharp %{ " ;;
(csharp) printf "%s\n" "
map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'classes' map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'classes'
map global fzf-ctags 'd' ': fzf-tag d<ret>' -docstring 'macro definitions' map global fzf-ctags 'd' ': fzf-tag d<ret>' -docstring 'macro definitions'
map global fzf-ctags 'e' ': fzf-tag e<ret>' -docstring 'enumerators (values inside an enumeration)' map global fzf-ctags 'e' ': fzf-tag e<ret>' -docstring 'enumerators (values inside an enumeration)'
@ -177,12 +201,14 @@ try %{
map global fzf-ctags 'p' ': fzf-tag p<ret>' -docstring 'properties' map global fzf-ctags 'p' ': fzf-tag p<ret>' -docstring 'properties'
map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'structure names' map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'structure names'
map global fzf-ctags 't' ': fzf-tag t<ret>' -docstring 'typedefs' map global fzf-ctags 't' ': fzf-tag t<ret>' -docstring 'typedefs'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=ctags %{ " ;;
(ctags) printf "%s\n" "
map global fzf-ctags 'l' ': fzf-tag l<ret>' -docstring 'language definitions' map global fzf-ctags 'l' ': fzf-tag l<ret>' -docstring 'language definitions'
map global fzf-ctags 'k' ': fzf-tag k<ret>' -docstring 'kind definitions' map global fzf-ctags 'k' ': fzf-tag k<ret>' -docstring 'kind definitions'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=cobol %{ " ;;
(cobol) printf "%s\n" "
map global fzf-ctags 'p' ': fzf-tag p<ret>' -docstring 'paragraphs' map global fzf-ctags 'p' ': fzf-tag p<ret>' -docstring 'paragraphs'
map global fzf-ctags 'd' ': fzf-tag d<ret>' -docstring 'data items' map global fzf-ctags 'd' ': fzf-tag d<ret>' -docstring 'data items'
map global fzf-ctags '<a-s>' ': fzf-tag S<ret>' -docstring 'source code file' map global fzf-ctags '<a-s>' ': fzf-tag S<ret>' -docstring 'source code file'
@ -191,8 +217,9 @@ try %{
map global fzf-ctags '<a-p>' ': fzf-tag P<ret>' -docstring 'program ids' map global fzf-ctags '<a-p>' ': fzf-tag P<ret>' -docstring 'program ids'
map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'sections' map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'sections'
map global fzf-ctags '<a-d>' ': fzf-tag D<ret>' -docstring 'divisions' map global fzf-ctags '<a-d>' ': fzf-tag D<ret>' -docstring 'divisions'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=cuda %{ " ;;
(cuda) printf "%s\n" "
map global fzf-ctags 'd' ': fzf-tag d<ret>' -docstring 'macro definitions' map global fzf-ctags 'd' ': fzf-tag d<ret>' -docstring 'macro definitions'
map global fzf-ctags 'e' ': fzf-tag e<ret>' -docstring 'enumerators (values inside an enumeration)' map global fzf-ctags 'e' ': fzf-tag e<ret>' -docstring 'enumerators (values inside an enumeration)'
map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'function definitions' map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'function definitions'
@ -203,8 +230,9 @@ try %{
map global fzf-ctags 't' ': fzf-tag t<ret>' -docstring 'typedefs' map global fzf-ctags 't' ': fzf-tag t<ret>' -docstring 'typedefs'
map global fzf-ctags 'u' ': fzf-tag u<ret>' -docstring 'union names' map global fzf-ctags 'u' ': fzf-tag u<ret>' -docstring 'union names'
map global fzf-ctags 'v' ': fzf-tag v<ret>' -docstring 'variable definitions' map global fzf-ctags 'v' ': fzf-tag v<ret>' -docstring 'variable definitions'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=d %{ " ;;
(d) printf "%s\n" "
map global fzf-ctags 'a' ': fzf-tag a<ret>' -docstring 'aliases' map global fzf-ctags 'a' ': fzf-tag a<ret>' -docstring 'aliases'
map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'classes' map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'classes'
map global fzf-ctags 'g' ': fzf-tag g<ret>' -docstring 'enumeration names' map global fzf-ctags 'g' ': fzf-tag g<ret>' -docstring 'enumeration names'
@ -220,34 +248,40 @@ try %{
map global fzf-ctags 'u' ': fzf-tag u<ret>' -docstring 'union names' map global fzf-ctags 'u' ': fzf-tag u<ret>' -docstring 'union names'
map global fzf-ctags 'v' ': fzf-tag v<ret>' -docstring 'variable definitions' map global fzf-ctags 'v' ': fzf-tag v<ret>' -docstring 'variable definitions'
map global fzf-ctags '<a-v>' ': fzf-tag V<ret>' -docstring 'version statements' map global fzf-ctags '<a-v>' ': fzf-tag V<ret>' -docstring 'version statements'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=diff %{ " ;;
(diff) printf "%s\n" "
map global fzf-ctags 'm' ': fzf-tag m<ret>' -docstring 'modified files' map global fzf-ctags 'm' ': fzf-tag m<ret>' -docstring 'modified files'
map global fzf-ctags 'n' ': fzf-tag n<ret>' -docstring 'newly created files' map global fzf-ctags 'n' ': fzf-tag n<ret>' -docstring 'newly created files'
map global fzf-ctags 'd' ': fzf-tag d<ret>' -docstring 'deleted files' map global fzf-ctags 'd' ': fzf-tag d<ret>' -docstring 'deleted files'
map global fzf-ctags 'h' ': fzf-tag h<ret>' -docstring 'hunks' map global fzf-ctags 'h' ': fzf-tag h<ret>' -docstring 'hunks'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=dtd %{ " ;;
(dtd) printf "%s\n" "
map global fzf-ctags '<a-e>' ': fzf-tag E<ret>' -docstring 'entities' map global fzf-ctags '<a-e>' ': fzf-tag E<ret>' -docstring 'entities'
map global fzf-ctags 'p' ': fzf-tag p<ret>' -docstring 'parameter entities' map global fzf-ctags 'p' ': fzf-tag p<ret>' -docstring 'parameter entities'
map global fzf-ctags 'e' ': fzf-tag e<ret>' -docstring 'elements' map global fzf-ctags 'e' ': fzf-tag e<ret>' -docstring 'elements'
map global fzf-ctags 'a' ': fzf-tag a<ret>' -docstring 'attributes' map global fzf-ctags 'a' ': fzf-tag a<ret>' -docstring 'attributes'
map global fzf-ctags 'n' ': fzf-tag n<ret>' -docstring 'notations' map global fzf-ctags 'n' ': fzf-tag n<ret>' -docstring 'notations'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=dts %{ " ;;
(dts) printf "%s\n" "
map global fzf-ctags 'p' ': fzf-tag p<ret>' -docstring 'phandlers' map global fzf-ctags 'p' ': fzf-tag p<ret>' -docstring 'phandlers'
map global fzf-ctags 'l' ': fzf-tag l<ret>' -docstring 'labels' map global fzf-ctags 'l' ': fzf-tag l<ret>' -docstring 'labels'
map global fzf-ctags 'r' ': fzf-tag r<ret>' -docstring 'regex' map global fzf-ctags 'r' ': fzf-tag r<ret>' -docstring 'regex'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=dosbatch %{ " ;;
(dosbatch) printf "%s\n" "
map global fzf-ctags 'l' ': fzf-tag l<ret>' -docstring 'labels' map global fzf-ctags 'l' ': fzf-tag l<ret>' -docstring 'labels'
map global fzf-ctags 'v' ': fzf-tag v<ret>' -docstring 'variables' map global fzf-ctags 'v' ': fzf-tag v<ret>' -docstring 'variables'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=eiffel %{ " ;;
(eiffel) printf "%s\n" "
map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'classes' map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'classes'
map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'features' map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'features'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=elm %{ " ;;
(elm) printf "%s\n" "
map global fzf-ctags 'm' ': fzf-tag m<ret>' -docstring 'module' map global fzf-ctags 'm' ': fzf-tag m<ret>' -docstring 'module'
map global fzf-ctags 'n' ': fzf-tag n<ret>' -docstring 'renamed <a-i>mported <a-m>odule' map global fzf-ctags 'n' ': fzf-tag n<ret>' -docstring 'renamed <a-i>mported <a-m>odule'
map global fzf-ctags 'p' ': fzf-tag P<ret>' -docstring 'port' map global fzf-ctags 'p' ': fzf-tag P<ret>' -docstring 'port'
@ -255,30 +289,34 @@ try %{
map global fzf-ctags 'c' ': fzf-tag C<ret>' -docstring 'type <a-c>onstructor' map global fzf-ctags 'c' ': fzf-tag C<ret>' -docstring 'type <a-c>onstructor'
map global fzf-ctags 'a' ': fzf-tag A<ret>' -docstring 'type <a-a>lias' map global fzf-ctags 'a' ': fzf-tag A<ret>' -docstring 'type <a-a>lias'
map global fzf-ctags 'f' ': fzf-tag F<ret>' -docstring 'functions' map global fzf-ctags 'f' ': fzf-tag F<ret>' -docstring 'functions'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=erlang %{ " ;;
(erlang) printf "%s\n" "
map global fzf-ctags 'd' ': fzf-tag d<ret>' -docstring 'macro definitions' map global fzf-ctags 'd' ': fzf-tag d<ret>' -docstring 'macro definitions'
map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'functions' map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'functions'
map global fzf-ctags 'm' ': fzf-tag m<ret>' -docstring 'modules' map global fzf-ctags 'm' ': fzf-tag m<ret>' -docstring 'modules'
map global fzf-ctags 'r' ': fzf-tag r<ret>' -docstring 'record definitions' map global fzf-ctags 'r' ': fzf-tag r<ret>' -docstring 'record definitions'
map global fzf-ctags 't' ': fzf-tag t<ret>' -docstring 'type definitions' map global fzf-ctags 't' ': fzf-tag t<ret>' -docstring 'type definitions'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=falcon %{ " ;;
(falcon) printf "%s\n" "
map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'classes' map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'classes'
map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'functions' map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'functions'
map global fzf-ctags 'm' ': fzf-tag m<ret>' -docstring 'class members' map global fzf-ctags 'm' ': fzf-tag m<ret>' -docstring 'class members'
map global fzf-ctags 'v' ': fzf-tag v<ret>' -docstring 'variables' map global fzf-ctags 'v' ': fzf-tag v<ret>' -docstring 'variables'
map global fzf-ctags 'i' ': fzf-tag i<ret>' -docstring 'imports' map global fzf-ctags 'i' ': fzf-tag i<ret>' -docstring 'imports'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=flex %{ " ;;
(flex) printf "%s\n" "
map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'functions' map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'functions'
map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'classes' map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'classes'
map global fzf-ctags 'm' ': fzf-tag m<ret>' -docstring 'methods' map global fzf-ctags 'm' ': fzf-tag m<ret>' -docstring 'methods'
map global fzf-ctags 'p' ': fzf-tag p<ret>' -docstring 'properties' map global fzf-ctags 'p' ': fzf-tag p<ret>' -docstring 'properties'
map global fzf-ctags 'v' ': fzf-tag v<ret>' -docstring 'global variables' map global fzf-ctags 'v' ': fzf-tag v<ret>' -docstring 'global variables'
map global fzf-ctags 'x' ': fzf-tag x<ret>' -docstring 'mxtags' map global fzf-ctags 'x' ': fzf-tag x<ret>' -docstring 'mxtags'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=fortran %{ " ;;
(fortran) printf "%s\n" "
map global fzf-ctags 'b' ': fzf-tag b<ret>' -docstring 'block data' map global fzf-ctags 'b' ': fzf-tag b<ret>' -docstring 'block data'
map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'common blocks' map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'common blocks'
map global fzf-ctags 'e' ': fzf-tag e<ret>' -docstring 'entry points' map global fzf-ctags 'e' ': fzf-tag e<ret>' -docstring 'entry points'
@ -296,15 +334,18 @@ try %{
map global fzf-ctags 't' ': fzf-tag t<ret>' -docstring 'derived types and structures' map global fzf-ctags 't' ': fzf-tag t<ret>' -docstring 'derived types and structures'
map global fzf-ctags 'v' ': fzf-tag v<ret>' -docstring 'program (global) and module variables' map global fzf-ctags 'v' ': fzf-tag v<ret>' -docstring 'program (global) and module variables'
map global fzf-ctags '<a-s>' ': fzf-tag S<ret>' -docstring 'submodules' map global fzf-ctags '<a-s>' ': fzf-tag S<ret>' -docstring 'submodules'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=fypp %{ " ;;
(fypp) printf "%s\n" "
map global fzf-ctags 'm' ': fzf-tag m<ret>' -docstring 'macros' map global fzf-ctags 'm' ': fzf-tag m<ret>' -docstring 'macros'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=gdbinit %{ " ;;
(gdbinit) printf "%s\n" "
map global fzf-ctags 'd' ': fzf-tag d<ret>' -docstring 'definitions' map global fzf-ctags 'd' ': fzf-tag d<ret>' -docstring 'definitions'
map global fzf-ctags 't' ': fzf-tag t<ret>' -docstring 'toplevel variables' map global fzf-ctags 't' ': fzf-tag t<ret>' -docstring 'toplevel variables'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=go %{ " ;;
(go) printf "%s\n" "
map global fzf-ctags 'p' ': fzf-tag p<ret>' -docstring 'packages' map global fzf-ctags 'p' ': fzf-tag p<ret>' -docstring 'packages'
map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'functions' map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'functions'
map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'constants' map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'constants'
@ -316,25 +357,29 @@ try %{
map global fzf-ctags '<a-m>' ': fzf-tag M<ret>' -docstring 'struct anonymous members' map global fzf-ctags '<a-m>' ': fzf-tag M<ret>' -docstring 'struct anonymous members'
map global fzf-ctags 'u' ': fzf-tag u<ret>' -docstring 'unknown' map global fzf-ctags 'u' ': fzf-tag u<ret>' -docstring 'unknown'
map global fzf-ctags '<a-p>' ': fzf-tag P<ret>' -docstring 'name for specifying imported package' map global fzf-ctags '<a-p>' ': fzf-tag P<ret>' -docstring 'name for specifying imported package'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=html %{ " ;;
(html) printf "%s\n" "
map global fzf-ctags 'a' ': fzf-tag a<ret>' -docstring 'named anchors' map global fzf-ctags 'a' ': fzf-tag a<ret>' -docstring 'named anchors'
map global fzf-ctags 'h' ': fzf-tag h<ret>' -docstring 'h1 headings' map global fzf-ctags 'h' ': fzf-tag h<ret>' -docstring 'h1 headings'
map global fzf-ctags 'i' ': fzf-tag i<ret>' -docstring 'h2 headings' map global fzf-ctags 'i' ': fzf-tag i<ret>' -docstring 'h2 headings'
map global fzf-ctags 'j' ': fzf-tag j<ret>' -docstring 'h3 headings' map global fzf-ctags 'j' ': fzf-tag j<ret>' -docstring 'h3 headings'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=iniconf %{ " ;;
(iniconf) printf "%s\n" "
map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'sections' map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'sections'
map global fzf-ctags 'k' ': fzf-tag k<ret>' -docstring 'keys' map global fzf-ctags 'k' ': fzf-tag k<ret>' -docstring 'keys'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=itcl %{ " ;;
(itcl) printf "%s\n" "
map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'classes' map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'classes'
map global fzf-ctags 'm' ': fzf-tag m<ret>' -docstring 'methods' map global fzf-ctags 'm' ': fzf-tag m<ret>' -docstring 'methods'
map global fzf-ctags 'v' ': fzf-tag v<ret>' -docstring 'object-specific variables' map global fzf-ctags 'v' ': fzf-tag v<ret>' -docstring 'object-specific variables'
map global fzf-ctags '<a-c>' ': fzf-tag C<ret>' -docstring 'common variables' map global fzf-ctags '<a-c>' ': fzf-tag C<ret>' -docstring 'common variables'
map global fzf-ctags 'p' ': fzf-tag p<ret>' -docstring 'procedures within the class namespace' map global fzf-ctags 'p' ': fzf-tag p<ret>' -docstring 'procedures within the class namespace'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=java %{ " ;;
(java) printf "%s\n" "
map global fzf-ctags 'a' ': fzf-tag a<ret>' -docstring 'annotation declarations' map global fzf-ctags 'a' ': fzf-tag a<ret>' -docstring 'annotation declarations'
map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'classes' map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'classes'
map global fzf-ctags 'e' ': fzf-tag e<ret>' -docstring 'enum constants' map global fzf-ctags 'e' ': fzf-tag e<ret>' -docstring 'enum constants'
@ -343,11 +388,13 @@ try %{
map global fzf-ctags 'i' ': fzf-tag i<ret>' -docstring 'interfaces' map global fzf-ctags 'i' ': fzf-tag i<ret>' -docstring 'interfaces'
map global fzf-ctags 'm' ': fzf-tag m<ret>' -docstring 'methods' map global fzf-ctags 'm' ': fzf-tag m<ret>' -docstring 'methods'
map global fzf-ctags 'p' ': fzf-tag p<ret>' -docstring 'packages' map global fzf-ctags 'p' ': fzf-tag p<ret>' -docstring 'packages'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=javaproperties %{ " ;;
(javaproperties) printf "%s\n" "
map global fzf-ctags 'k' ': fzf-tag k<ret>' -docstring 'keys' map global fzf-ctags 'k' ': fzf-tag k<ret>' -docstring 'keys'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=javascript %{ " ;;
(javascript) printf "%s\n" "
map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'functions' map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'functions'
map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'classes' map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'classes'
map global fzf-ctags 'm' ': fzf-tag m<ret>' -docstring 'methods' map global fzf-ctags 'm' ': fzf-tag m<ret>' -docstring 'methods'
@ -355,41 +402,49 @@ try %{
map global fzf-ctags '<a-c>' ': fzf-tag C<ret>' -docstring 'constants' map global fzf-ctags '<a-c>' ': fzf-tag C<ret>' -docstring 'constants'
map global fzf-ctags 'v' ': fzf-tag v<ret>' -docstring 'global variables' map global fzf-ctags 'v' ': fzf-tag v<ret>' -docstring 'global variables'
map global fzf-ctags 'g' ': fzf-tag g<ret>' -docstring 'generators' map global fzf-ctags 'g' ': fzf-tag g<ret>' -docstring 'generators'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=json %{ " ;;
(json) printf "%s\n" "
map global fzf-ctags 'o' ': fzf-tag o<ret>' -docstring 'objects' map global fzf-ctags 'o' ': fzf-tag o<ret>' -docstring 'objects'
map global fzf-ctags 'a' ': fzf-tag a<ret>' -docstring 'arrays' map global fzf-ctags 'a' ': fzf-tag a<ret>' -docstring 'arrays'
map global fzf-ctags 'n' ': fzf-tag n<ret>' -docstring 'numbers' map global fzf-ctags 'n' ': fzf-tag n<ret>' -docstring 'numbers'
map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'strings' map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'strings'
map global fzf-ctags 'b' ': fzf-tag b<ret>' -docstring 'booleans' map global fzf-ctags 'b' ': fzf-tag b<ret>' -docstring 'booleans'
map global fzf-ctags 'z' ': fzf-tag z<ret>' -docstring 'nulls' map global fzf-ctags 'z' ': fzf-tag z<ret>' -docstring 'nulls'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=ldscript %{ " ;;
(ldscript) printf "%s\n" "
map global fzf-ctags '<a-s>' ': fzf-tag S<ret>' -docstring 'sections' map global fzf-ctags '<a-s>' ': fzf-tag S<ret>' -docstring 'sections'
map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'symbols' map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'symbols'
map global fzf-ctags 'v' ': fzf-tag v<ret>' -docstring 'versions' map global fzf-ctags 'v' ': fzf-tag v<ret>' -docstring 'versions'
map global fzf-ctags 'i' ': fzf-tag i<ret>' -docstring 'input sections' map global fzf-ctags 'i' ': fzf-tag i<ret>' -docstring 'input sections'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=lisp %{ " ;;
(lisp) printf "%s\n" "
map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'functions' map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'functions'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=lua %{ " ;;
(lua) printf "%s\n" "
map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'functions' map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'functions'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=m4 %{ " ;;
(m4) printf "%s\n" "
map global fzf-ctags 'd' ': fzf-tag d<ret>' -docstring 'macros' map global fzf-ctags 'd' ': fzf-tag d<ret>' -docstring 'macros'
map global fzf-ctags '<a-i>' ': fzf-tag I<ret>' -docstring 'macro files' map global fzf-ctags '<a-i>' ': fzf-tag I<ret>' -docstring 'macro files'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=man %{ " ;;
(man) printf "%s\n" "
map global fzf-ctags 't' ': fzf-tag t<ret>' -docstring 'titles' map global fzf-ctags 't' ': fzf-tag t<ret>' -docstring 'titles'
map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'sections' map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'sections'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=make %{ " ;;
(make) printf "%s\n" "
map global fzf-ctags 'm' ': fzf-tag m<ret>' -docstring 'macros' map global fzf-ctags 'm' ': fzf-tag m<ret>' -docstring 'macros'
map global fzf-ctags 't' ': fzf-tag t<ret>' -docstring 'targets' map global fzf-ctags 't' ': fzf-tag t<ret>' -docstring 'targets'
map global fzf-ctags '<a-i>' ': fzf-tag I<ret>' -docstring 'makefiles' map global fzf-ctags '<a-i>' ': fzf-tag I<ret>' -docstring 'makefiles'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=markdown %{ " ;;
(markdown) printf "%s\n" "
map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'chapsters' map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'chapsters'
map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'sections' map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'sections'
map global fzf-ctags '<a-s>' ': fzf-tag S<ret>' -docstring 'subsections' map global fzf-ctags '<a-s>' ': fzf-tag S<ret>' -docstring 'subsections'
@ -397,21 +452,24 @@ try %{
map global fzf-ctags '<a-t>' ': fzf-tag T<ret>' -docstring 'level 4 subsections' map global fzf-ctags '<a-t>' ': fzf-tag T<ret>' -docstring 'level 4 subsections'
map global fzf-ctags 'u' ': fzf-tag u<ret>' -docstring 'level 5 subsections' map global fzf-ctags 'u' ': fzf-tag u<ret>' -docstring 'level 5 subsections'
map global fzf-ctags 'r' ': fzf-tag r<ret>' -docstring 'regex' map global fzf-ctags 'r' ': fzf-tag r<ret>' -docstring 'regex'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=matlab %{ " ;;
(matlab) printf "%s\n" "
map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'function' map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'function'
map global fzf-ctags 'v' ': fzf-tag v<ret>' -docstring 'variable' map global fzf-ctags 'v' ': fzf-tag v<ret>' -docstring 'variable'
map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'class' map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'class'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=myrddin %{ " ;;
(myrddin) printf "%s\n" "
map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'functions' map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'functions'
map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'constants' map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'constants'
map global fzf-ctags 'v' ': fzf-tag v<ret>' -docstring 'variables' map global fzf-ctags 'v' ': fzf-tag v<ret>' -docstring 'variables'
map global fzf-ctags 't' ': fzf-tag t<ret>' -docstring 'types' map global fzf-ctags 't' ': fzf-tag t<ret>' -docstring 'types'
map global fzf-ctags 'r' ': fzf-tag r<ret>' -docstring 'traits' map global fzf-ctags 'r' ': fzf-tag r<ret>' -docstring 'traits'
map global fzf-ctags 'p' ': fzf-tag p<ret>' -docstring 'packages' map global fzf-ctags 'p' ': fzf-tag p<ret>' -docstring 'packages'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=objectivec %{ " ;;
(objectivec) printf "%s\n" "
map global fzf-ctags 'i' ': fzf-tag i<ret>' -docstring 'class interface' map global fzf-ctags 'i' ': fzf-tag i<ret>' -docstring 'class interface'
map global fzf-ctags '<a-i>' ': fzf-tag I<ret>' -docstring 'class implementation' map global fzf-ctags '<a-i>' ': fzf-tag I<ret>' -docstring 'class implementation'
map global fzf-ctags '<a-p>' ': fzf-tag P<ret>' -docstring '<a-p>rotocol' map global fzf-ctags '<a-p>' ': fzf-tag P<ret>' -docstring '<a-p>rotocol'
@ -425,8 +483,9 @@ try %{
map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'a type structure' map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'a type structure'
map global fzf-ctags 'e' ': fzf-tag e<ret>' -docstring 'an enumeration' map global fzf-ctags 'e' ': fzf-tag e<ret>' -docstring 'an enumeration'
map global fzf-ctags '<a-m>' ': fzf-tag M<ret>' -docstring '<a-a> preprocessor macro' map global fzf-ctags '<a-m>' ': fzf-tag M<ret>' -docstring '<a-a> preprocessor macro'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=ocaml %{ " ;;
(ocaml) printf "%s\n" "
map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'classes' map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'classes'
map global fzf-ctags 'm' ': fzf-tag m<ret>' -docstring 'object's method' map global fzf-ctags 'm' ': fzf-tag m<ret>' -docstring 'object's method'
map global fzf-ctags '<a-m>' ': fzf-tag M<ret>' -docstring '<a-m>odule or functor' map global fzf-ctags '<a-m>' ': fzf-tag M<ret>' -docstring '<a-m>odule or functor'
@ -437,22 +496,26 @@ try %{
map global fzf-ctags '<a-c>' ': fzf-tag C<ret>' -docstring '<a-a> constructor' map global fzf-ctags '<a-c>' ': fzf-tag C<ret>' -docstring '<a-a> constructor'
map global fzf-ctags 'r' ': fzf-tag R<ret>' -docstring 'a 'structure' field' map global fzf-ctags 'r' ': fzf-tag R<ret>' -docstring 'a 'structure' field'
map global fzf-ctags 'e' ': fzf-tag e<ret>' -docstring 'an exception' map global fzf-ctags 'e' ': fzf-tag e<ret>' -docstring 'an exception'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=passwd %{ " ;;
(passwd) printf "%s\n" "
map global fzf-ctags 'u' ': fzf-tag u<ret>' -docstring 'user names' map global fzf-ctags 'u' ': fzf-tag u<ret>' -docstring 'user names'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=pascal %{ " ;;
(pascal) printf "%s\n" "
map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'functions' map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'functions'
map global fzf-ctags 'p' ': fzf-tag p<ret>' -docstring 'procedures' map global fzf-ctags 'p' ': fzf-tag p<ret>' -docstring 'procedures'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=perl %{ " ;;
(perl) printf "%s\n" "
map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'constants' map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'constants'
map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'formats' map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'formats'
map global fzf-ctags 'l' ': fzf-tag l<ret>' -docstring 'labels' map global fzf-ctags 'l' ': fzf-tag l<ret>' -docstring 'labels'
map global fzf-ctags 'p' ': fzf-tag p<ret>' -docstring 'packages' map global fzf-ctags 'p' ': fzf-tag p<ret>' -docstring 'packages'
map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'subroutines' map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'subroutines'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=perl6 %{ " ;;
(perl6) printf "%s\n" "
map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'classes' map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'classes'
map global fzf-ctags 'g' ': fzf-tag g<ret>' -docstring 'grammars' map global fzf-ctags 'g' ': fzf-tag g<ret>' -docstring 'grammars'
map global fzf-ctags 'm' ': fzf-tag m<ret>' -docstring 'methods' map global fzf-ctags 'm' ': fzf-tag m<ret>' -docstring 'methods'
@ -463,8 +526,9 @@ try %{
map global fzf-ctags 'b' ': fzf-tag b<ret>' -docstring 'submethods' map global fzf-ctags 'b' ': fzf-tag b<ret>' -docstring 'submethods'
map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'subroutines' map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'subroutines'
map global fzf-ctags 't' ': fzf-tag t<ret>' -docstring 'tokens' map global fzf-ctags 't' ': fzf-tag t<ret>' -docstring 'tokens'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=php %{ " ;;
(php) printf "%s\n" "
map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'classes' map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'classes'
map global fzf-ctags 'd' ': fzf-tag d<ret>' -docstring 'constant definitions' map global fzf-ctags 'd' ': fzf-tag d<ret>' -docstring 'constant definitions'
map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'functions' map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'functions'
@ -473,29 +537,33 @@ try %{
map global fzf-ctags 't' ': fzf-tag t<ret>' -docstring 'traits' map global fzf-ctags 't' ': fzf-tag t<ret>' -docstring 'traits'
map global fzf-ctags 'v' ': fzf-tag v<ret>' -docstring 'variables' map global fzf-ctags 'v' ': fzf-tag v<ret>' -docstring 'variables'
map global fzf-ctags 'a' ': fzf-tag a<ret>' -docstring 'aliases' map global fzf-ctags 'a' ': fzf-tag a<ret>' -docstring 'aliases'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=pod %{ " ;;
(pod) printf "%s\n" "
map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'chapters' map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'chapters'
map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'sections' map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'sections'
map global fzf-ctags '<a-s>' ': fzf-tag S<ret>' -docstring 'subsections' map global fzf-ctags '<a-s>' ': fzf-tag S<ret>' -docstring 'subsections'
map global fzf-ctags 't' ': fzf-tag t<ret>' -docstring 'subsubsections' map global fzf-ctags 't' ': fzf-tag t<ret>' -docstring 'subsubsections'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=protobuf %{ " ;;
(protobuf) printf "%s\n" "
map global fzf-ctags 'p' ': fzf-tag p<ret>' -docstring 'packages' map global fzf-ctags 'p' ': fzf-tag p<ret>' -docstring 'packages'
map global fzf-ctags 'm' ': fzf-tag m<ret>' -docstring 'messages' map global fzf-ctags 'm' ': fzf-tag m<ret>' -docstring 'messages'
map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'fields' map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'fields'
map global fzf-ctags 'e' ': fzf-tag e<ret>' -docstring 'enum constants' map global fzf-ctags 'e' ': fzf-tag e<ret>' -docstring 'enum constants'
map global fzf-ctags 'g' ': fzf-tag g<ret>' -docstring 'enum types' map global fzf-ctags 'g' ': fzf-tag g<ret>' -docstring 'enum types'
map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'services' map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'services'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=puppetmanifest %{ " ;;
(puppetmanifest) printf "%s\n" "
map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'classes' map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'classes'
map global fzf-ctags 'd' ': fzf-tag d<ret>' -docstring 'definitions' map global fzf-ctags 'd' ': fzf-tag d<ret>' -docstring 'definitions'
map global fzf-ctags 'n' ': fzf-tag n<ret>' -docstring 'nodes' map global fzf-ctags 'n' ': fzf-tag n<ret>' -docstring 'nodes'
map global fzf-ctags 'r' ': fzf-tag r<ret>' -docstring 'resources' map global fzf-ctags 'r' ': fzf-tag r<ret>' -docstring 'resources'
map global fzf-ctags 'v' ': fzf-tag v<ret>' -docstring 'variables' map global fzf-ctags 'v' ': fzf-tag v<ret>' -docstring 'variables'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=python %{ " ;;
(python) printf "%s\n" "
map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'classes' map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'classes'
map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'functions' map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'functions'
map global fzf-ctags 'm' ': fzf-tag m<ret>' -docstring 'class members' map global fzf-ctags 'm' ': fzf-tag m<ret>' -docstring 'class members'
@ -503,59 +571,70 @@ try %{
map global fzf-ctags '<a-i>' ': fzf-tag I<ret>' -docstring 'name referring a module defined in other file' map global fzf-ctags '<a-i>' ': fzf-tag I<ret>' -docstring 'name referring a module defined in other file'
map global fzf-ctags 'i' ': fzf-tag i<ret>' -docstring 'modules' map global fzf-ctags 'i' ': fzf-tag i<ret>' -docstring 'modules'
map global fzf-ctags 'x' ': fzf-tag x<ret>' -docstring 'name referring a class/variable/function/module defined in other module' map global fzf-ctags 'x' ': fzf-tag x<ret>' -docstring 'name referring a class/variable/function/module defined in other module'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=pythonloggingconfig %{ " ;;
(pythonloggingconfig) printf "%s\n" "
map global fzf-ctags '<a-l>' ': fzf-tag L<ret>' -docstring 'logger sections' map global fzf-ctags '<a-l>' ': fzf-tag L<ret>' -docstring 'logger sections'
map global fzf-ctags 'q' ': fzf-tag q<ret>' -docstring 'logger qualnames' map global fzf-ctags 'q' ': fzf-tag q<ret>' -docstring 'logger qualnames'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=qemuhx %{ " ;;
(qemuhx) printf "%s\n" "
map global fzf-ctags 'q' ': fzf-tag q<ret>' -docstring 'q<a-e><a-m><a-u> <a-m>anagement <a-p>rotocol dispatch table entries' map global fzf-ctags 'q' ': fzf-tag q<ret>' -docstring 'q<a-e><a-m><a-u> <a-m>anagement <a-p>rotocol dispatch table entries'
map global fzf-ctags 'i' ': fzf-tag I<ret>' -docstring 'item in texinfo doc' map global fzf-ctags 'i' ': fzf-tag I<ret>' -docstring 'item in texinfo doc'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=qtmoc %{ " ;;
(qtmoc) printf "%s\n" "
map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'slots' map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'slots'
map global fzf-ctags '<a-s>' ': fzf-tag S<ret>' -docstring 'signals' map global fzf-ctags '<a-s>' ': fzf-tag S<ret>' -docstring 'signals'
map global fzf-ctags 'p' ': fzf-tag p<ret>' -docstring 'properties' map global fzf-ctags 'p' ': fzf-tag p<ret>' -docstring 'properties'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=r %{ " ;;
(r) printf "%s\n" "
map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'functions' map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'functions'
map global fzf-ctags 'l' ': fzf-tag l<ret>' -docstring 'libraries' map global fzf-ctags 'l' ': fzf-tag l<ret>' -docstring 'libraries'
map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'sources' map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'sources'
map global fzf-ctags 'g' ': fzf-tag g<ret>' -docstring 'global variables' map global fzf-ctags 'g' ': fzf-tag g<ret>' -docstring 'global variables'
map global fzf-ctags 'v' ': fzf-tag v<ret>' -docstring 'function variables' map global fzf-ctags 'v' ': fzf-tag v<ret>' -docstring 'function variables'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=rspec %{ " ;;
(rspec) printf "%s\n" "
map global fzf-ctags 'd' ': fzf-tag d<ret>' -docstring 'describes' map global fzf-ctags 'd' ': fzf-tag d<ret>' -docstring 'describes'
map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'contexts' map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'contexts'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=rexx %{ " ;;
(rexx) printf "%s\n" "
map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'subroutines' map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'subroutines'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=robot %{ " ;;
(robot) printf "%s\n" "
map global fzf-ctags 't' ': fzf-tag t<ret>' -docstring 'testcases' map global fzf-ctags 't' ': fzf-tag t<ret>' -docstring 'testcases'
map global fzf-ctags 'k' ': fzf-tag k<ret>' -docstring 'keywords' map global fzf-ctags 'k' ': fzf-tag k<ret>' -docstring 'keywords'
map global fzf-ctags 'v' ': fzf-tag v<ret>' -docstring 'variables' map global fzf-ctags 'v' ': fzf-tag v<ret>' -docstring 'variables'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=rpmspec %{ " ;;
(rpmspec) printf "%s\n" "
map global fzf-ctags 't' ': fzf-tag t<ret>' -docstring 'tags' map global fzf-ctags 't' ': fzf-tag t<ret>' -docstring 'tags'
map global fzf-ctags 'm' ': fzf-tag m<ret>' -docstring 'macros' map global fzf-ctags 'm' ': fzf-tag m<ret>' -docstring 'macros'
map global fzf-ctags 'p' ': fzf-tag p<ret>' -docstring 'packages' map global fzf-ctags 'p' ': fzf-tag p<ret>' -docstring 'packages'
map global fzf-ctags 'g' ': fzf-tag g<ret>' -docstring 'global macros' map global fzf-ctags 'g' ': fzf-tag g<ret>' -docstring 'global macros'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=restructuredtext %{ " ;;
(restructuredtext) printf "%s\n" "
map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'chapters' map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'chapters'
map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'sections' map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'sections'
map global fzf-ctags '<a-s>' ': fzf-tag S<ret>' -docstring 'subsections' map global fzf-ctags '<a-s>' ': fzf-tag S<ret>' -docstring 'subsections'
map global fzf-ctags 't' ': fzf-tag t<ret>' -docstring 'subsubsections' map global fzf-ctags 't' ': fzf-tag t<ret>' -docstring 'subsubsections'
map global fzf-ctags '<a-t>' ': fzf-tag T<ret>' -docstring 'targets' map global fzf-ctags '<a-t>' ': fzf-tag T<ret>' -docstring 'targets'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=ruby %{ " ;;
(ruby) printf "%s\n" "
map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'classes' map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'classes'
map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'methods' map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'methods'
map global fzf-ctags 'm' ': fzf-tag m<ret>' -docstring 'modules' map global fzf-ctags 'm' ': fzf-tag m<ret>' -docstring 'modules'
map global fzf-ctags '<a-s>' ': fzf-tag S<ret>' -docstring 'singleton methods' map global fzf-ctags '<a-s>' ': fzf-tag S<ret>' -docstring 'singleton methods'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=rust %{ " ;;
(rust) printf "%s\n" "
map global fzf-ctags 'n' ': fzf-tag n<ret>' -docstring 'module' map global fzf-ctags 'n' ': fzf-tag n<ret>' -docstring 'module'
map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'structural type' map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'structural type'
map global fzf-ctags 'i' ': fzf-tag i<ret>' -docstring 'trait interface' map global fzf-ctags 'i' ': fzf-tag i<ret>' -docstring 'trait interface'
@ -568,22 +647,26 @@ try %{
map global fzf-ctags 'm' ': fzf-tag M<ret>' -docstring 'a struct field' map global fzf-ctags 'm' ': fzf-tag M<ret>' -docstring 'a struct field'
map global fzf-ctags 'e' ': fzf-tag e<ret>' -docstring 'an enum variant' map global fzf-ctags 'e' ': fzf-tag e<ret>' -docstring 'an enum variant'
map global fzf-ctags '<a-p>' ': fzf-tag P<ret>' -docstring '<a-a> method' map global fzf-ctags '<a-p>' ': fzf-tag P<ret>' -docstring '<a-a> method'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=scheme %{ " ;;
(scheme) printf "%s\n" "
map global fzf-ctags 'f' ': fzf-tag F<ret>' -docstring 'functions' map global fzf-ctags 'f' ': fzf-tag F<ret>' -docstring 'functions'
map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'sets' map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'sets'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=sh %{ " ;;
(sh) printf "%s\n" "
map global fzf-ctags 'a' ': fzf-tag a<ret>' -docstring 'aliases' map global fzf-ctags 'a' ': fzf-tag a<ret>' -docstring 'aliases'
map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'functions' map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'functions'
map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'script files' map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'script files'
map global fzf-ctags 'h' ': fzf-tag h<ret>' -docstring 'label for here document' map global fzf-ctags 'h' ': fzf-tag h<ret>' -docstring 'label for here document'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=slang %{ " ;;
(slang) printf "%s\n" "
map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'functions' map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'functions'
map global fzf-ctags 'n' ': fzf-tag n<ret>' -docstring 'namespaces' map global fzf-ctags 'n' ': fzf-tag n<ret>' -docstring 'namespaces'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=sml %{ " ;;
(sml) printf "%s\n" "
map global fzf-ctags 'e' ': fzf-tag e<ret>' -docstring 'exception declarations' map global fzf-ctags 'e' ': fzf-tag e<ret>' -docstring 'exception declarations'
map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'function definitions' map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'function definitions'
map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'functor definitions' map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'functor definitions'
@ -591,8 +674,9 @@ try %{
map global fzf-ctags 'r' ': fzf-tag r<ret>' -docstring 'structure declarations' map global fzf-ctags 'r' ': fzf-tag r<ret>' -docstring 'structure declarations'
map global fzf-ctags 't' ': fzf-tag t<ret>' -docstring 'type definitions' map global fzf-ctags 't' ': fzf-tag t<ret>' -docstring 'type definitions'
map global fzf-ctags 'v' ': fzf-tag v<ret>' -docstring 'value bindings' map global fzf-ctags 'v' ': fzf-tag v<ret>' -docstring 'value bindings'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=sql %{ " ;;
(sql) printf "%s\n" "
map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'cursors' map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'cursors'
map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'functions' map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'functions'
map global fzf-ctags '<a-e>' ': fzf-tag E<ret>' -docstring 'record fields' map global fzf-ctags '<a-e>' ': fzf-tag E<ret>' -docstring 'record fields'
@ -613,19 +697,23 @@ try %{
map global fzf-ctags 'x' ': fzf-tag x<ret>' -docstring 'mobi<a-l>ink <a-t>able <a-s>cripts' map global fzf-ctags 'x' ': fzf-tag x<ret>' -docstring 'mobi<a-l>ink <a-t>able <a-s>cripts'
map global fzf-ctags 'y' ': fzf-tag Y<ret>' -docstring 'mobi<a-l>ink <a-c>onn <a-s>cripts' map global fzf-ctags 'y' ': fzf-tag Y<ret>' -docstring 'mobi<a-l>ink <a-c>onn <a-s>cripts'
map global fzf-ctags 'z' ': fzf-tag Z<ret>' -docstring 'mobi<a-l>ink <a-p>roperties ' map global fzf-ctags 'z' ': fzf-tag Z<ret>' -docstring 'mobi<a-l>ink <a-p>roperties '
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=systemdunit %{ " ;;
(systemdunit) printf "%s\n" "
map global fzf-ctags 'u' ': fzf-tag U<ret>' -docstring 'units' map global fzf-ctags 'u' ': fzf-tag U<ret>' -docstring 'units'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=tcl %{ " ;;
(tcl) printf "%s\n" "
map global fzf-ctags 'p' ': fzf-tag p<ret>' -docstring 'procedures' map global fzf-ctags 'p' ': fzf-tag p<ret>' -docstring 'procedures'
map global fzf-ctags 'n' ': fzf-tag n<ret>' -docstring 'namespaces' map global fzf-ctags 'n' ': fzf-tag n<ret>' -docstring 'namespaces'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=tcloo %{ " ;;
(tcloo) printf "%s\n" "
map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'classes' map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'classes'
map global fzf-ctags 'm' ': fzf-tag m<ret>' -docstring 'methods' map global fzf-ctags 'm' ': fzf-tag m<ret>' -docstring 'methods'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=tex %{ " ;;
(tex) printf "%s\n" "
map global fzf-ctags 'p' ': fzf-tag p<ret>' -docstring 'parts' map global fzf-ctags 'p' ': fzf-tag p<ret>' -docstring 'parts'
map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'chapters' map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'chapters'
map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'sections' map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'sections'
@ -635,8 +723,9 @@ try %{
map global fzf-ctags '<a-g>' ': fzf-tag G<ret>' -docstring 'subparagraphs' map global fzf-ctags '<a-g>' ': fzf-tag G<ret>' -docstring 'subparagraphs'
map global fzf-ctags 'l' ': fzf-tag l<ret>' -docstring 'labels' map global fzf-ctags 'l' ': fzf-tag l<ret>' -docstring 'labels'
map global fzf-ctags 'i' ': fzf-tag i<ret>' -docstring 'includes' map global fzf-ctags 'i' ': fzf-tag i<ret>' -docstring 'includes'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=ttcn %{ " ;;
(ttcn) printf "%s\n" "
map global fzf-ctags '<a-m>' ': fzf-tag M<ret>' -docstring 'module definition' map global fzf-ctags '<a-m>' ': fzf-tag M<ret>' -docstring 'module definition'
map global fzf-ctags 't' ': fzf-tag t<ret>' -docstring 'type definition' map global fzf-ctags 't' ': fzf-tag t<ret>' -docstring 'type definition'
map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'constant definition' map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'constant definition'
@ -652,8 +741,9 @@ try %{
map global fzf-ctags 'p' ': fzf-tag p<ret>' -docstring 'port instance' map global fzf-ctags 'p' ': fzf-tag p<ret>' -docstring 'port instance'
map global fzf-ctags 'm' ': fzf-tag m<ret>' -docstring 'record/set/union member' map global fzf-ctags 'm' ': fzf-tag m<ret>' -docstring 'record/set/union member'
map global fzf-ctags 'e' ': fzf-tag e<ret>' -docstring 'enumeration value' map global fzf-ctags 'e' ': fzf-tag e<ret>' -docstring 'enumeration value'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=vera %{ " ;;
(vera) printf "%s\n" "
map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'classes' map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'classes'
map global fzf-ctags 'd' ': fzf-tag d<ret>' -docstring 'macro definitions' map global fzf-ctags 'd' ': fzf-tag d<ret>' -docstring 'macro definitions'
map global fzf-ctags 'e' ': fzf-tag e<ret>' -docstring 'enumerators (values inside an enumeration)' map global fzf-ctags 'e' ': fzf-tag e<ret>' -docstring 'enumerators (values inside an enumeration)'
@ -667,8 +757,9 @@ try %{
map global fzf-ctags '<a-t>' ': fzf-tag T<ret>' -docstring 'typedefs' map global fzf-ctags '<a-t>' ': fzf-tag T<ret>' -docstring 'typedefs'
map global fzf-ctags 'v' ': fzf-tag v<ret>' -docstring 'variable definitions' map global fzf-ctags 'v' ': fzf-tag v<ret>' -docstring 'variable definitions'
map global fzf-ctags 'h' ': fzf-tag h<ret>' -docstring 'included header files' map global fzf-ctags 'h' ': fzf-tag h<ret>' -docstring 'included header files'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=verilog %{ " ;;
(verilog) printf "%s\n" "
map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'constants (define, parameter, specparam)' map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'constants (define, parameter, specparam)'
map global fzf-ctags 'e' ': fzf-tag e<ret>' -docstring 'events' map global fzf-ctags 'e' ': fzf-tag e<ret>' -docstring 'events'
map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'functions' map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'functions'
@ -678,8 +769,9 @@ try %{
map global fzf-ctags 'r' ': fzf-tag r<ret>' -docstring 'register data types' map global fzf-ctags 'r' ': fzf-tag r<ret>' -docstring 'register data types'
map global fzf-ctags 't' ': fzf-tag t<ret>' -docstring 'tasks' map global fzf-ctags 't' ': fzf-tag t<ret>' -docstring 'tasks'
map global fzf-ctags 'b' ': fzf-tag b<ret>' -docstring 'blocks' map global fzf-ctags 'b' ': fzf-tag b<ret>' -docstring 'blocks'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=systemverilog %{ " ;;
(systemverilog) printf "%s\n" "
map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'constants (define, parameter, specparam, enum values)' map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'constants (define, parameter, specparam, enum values)'
map global fzf-ctags 'e' ': fzf-tag e<ret>' -docstring 'events' map global fzf-ctags 'e' ': fzf-tag e<ret>' -docstring 'events'
map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'functions' map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'functions'
@ -700,8 +792,9 @@ try %{
map global fzf-ctags '<a-r>' ': fzf-tag R<ret>' -docstring 'properties' map global fzf-ctags '<a-r>' ': fzf-tag R<ret>' -docstring 'properties'
map global fzf-ctags '<a-s>' ': fzf-tag S<ret>' -docstring 'structs and unions' map global fzf-ctags '<a-s>' ': fzf-tag S<ret>' -docstring 'structs and unions'
map global fzf-ctags '<a-t>' ': fzf-tag T<ret>' -docstring 'type declarations' map global fzf-ctags '<a-t>' ': fzf-tag T<ret>' -docstring 'type declarations'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=vhdl %{ " ;;
(vhdl) printf "%s\n" "
map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'constant declarations' map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'constant declarations'
map global fzf-ctags 't' ': fzf-tag t<ret>' -docstring 'type definitions' map global fzf-ctags 't' ': fzf-tag t<ret>' -docstring 'type definitions'
map global fzf-ctags '<a-t>' ': fzf-tag T<ret>' -docstring 'subtype definitions' map global fzf-ctags '<a-t>' ': fzf-tag T<ret>' -docstring 'subtype definitions'
@ -710,16 +803,18 @@ try %{
map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'function prototypes and declarations' map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'function prototypes and declarations'
map global fzf-ctags 'p' ': fzf-tag p<ret>' -docstring 'procedure prototypes and declarations' map global fzf-ctags 'p' ': fzf-tag p<ret>' -docstring 'procedure prototypes and declarations'
map global fzf-ctags '<a-p>' ': fzf-tag P<ret>' -docstring 'package definitions' map global fzf-ctags '<a-p>' ': fzf-tag P<ret>' -docstring 'package definitions'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=vim %{ " ;;
(vim) printf "%s\n" "
map global fzf-ctags 'a' ': fzf-tag a<ret>' -docstring 'autocommand groups' map global fzf-ctags 'a' ': fzf-tag a<ret>' -docstring 'autocommand groups'
map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'user-defined commands' map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'user-defined commands'
map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'function definitions' map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'function definitions'
map global fzf-ctags 'm' ': fzf-tag m<ret>' -docstring 'maps' map global fzf-ctags 'm' ': fzf-tag m<ret>' -docstring 'maps'
map global fzf-ctags 'v' ': fzf-tag v<ret>' -docstring 'variable definitions' map global fzf-ctags 'v' ': fzf-tag v<ret>' -docstring 'variable definitions'
map global fzf-ctags 'n' ': fzf-tag n<ret>' -docstring 'vimball filename' map global fzf-ctags 'n' ': fzf-tag n<ret>' -docstring 'vimball filename'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=windres %{ " ;;
(windres) printf "%s\n" "
map global fzf-ctags 'd' ': fzf-tag d<ret>' -docstring 'dialogs' map global fzf-ctags 'd' ': fzf-tag d<ret>' -docstring 'dialogs'
map global fzf-ctags 'm' ': fzf-tag m<ret>' -docstring 'menus' map global fzf-ctags 'm' ': fzf-tag m<ret>' -docstring 'menus'
map global fzf-ctags 'i' ': fzf-tag i<ret>' -docstring 'icons' map global fzf-ctags 'i' ': fzf-tag i<ret>' -docstring 'icons'
@ -728,14 +823,17 @@ try %{
map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'fonts' map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'fonts'
map global fzf-ctags 'v' ': fzf-tag v<ret>' -docstring 'versions' map global fzf-ctags 'v' ': fzf-tag v<ret>' -docstring 'versions'
map global fzf-ctags 'a' ': fzf-tag a<ret>' -docstring 'accelerators' map global fzf-ctags 'a' ': fzf-tag a<ret>' -docstring 'accelerators'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=yacc %{ " ;;
(yacc) printf "%s\n" "
map global fzf-ctags 'l' ': fzf-tag l<ret>' -docstring 'labels' map global fzf-ctags 'l' ': fzf-tag l<ret>' -docstring 'labels'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=yumrepo %{ " ;;
(yumrepo) printf "%s\n" "
map global fzf-ctags 'r' ': fzf-tag r<ret>' -docstring 'repository id' map global fzf-ctags 'r' ': fzf-tag r<ret>' -docstring 'repository id'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=zephir %{ " ;;
(zephir) printf "%s\n" "
map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'classes' map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'classes'
map global fzf-ctags 'd' ': fzf-tag d<ret>' -docstring 'constant definitions' map global fzf-ctags 'd' ': fzf-tag d<ret>' -docstring 'constant definitions'
map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'functions' map global fzf-ctags 'f' ': fzf-tag f<ret>' -docstring 'functions'
@ -744,50 +842,60 @@ try %{
map global fzf-ctags 't' ': fzf-tag t<ret>' -docstring 'traits' map global fzf-ctags 't' ': fzf-tag t<ret>' -docstring 'traits'
map global fzf-ctags 'v' ': fzf-tag v<ret>' -docstring 'variables' map global fzf-ctags 'v' ': fzf-tag v<ret>' -docstring 'variables'
map global fzf-ctags 'a' ': fzf-tag a<ret>' -docstring 'aliases' map global fzf-ctags 'a' ': fzf-tag a<ret>' -docstring 'aliases'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=dbusintrospect %{ " ;;
(dbusintrospect) printf "%s\n" "
map global fzf-ctags 'i' ': fzf-tag i<ret>' -docstring 'interfaces' map global fzf-ctags 'i' ': fzf-tag i<ret>' -docstring 'interfaces'
map global fzf-ctags 'm' ': fzf-tag m<ret>' -docstring 'methods' map global fzf-ctags 'm' ': fzf-tag m<ret>' -docstring 'methods'
map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'signals' map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'signals'
map global fzf-ctags 'p' ': fzf-tag p<ret>' -docstring 'properties' map global fzf-ctags 'p' ': fzf-tag p<ret>' -docstring 'properties'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=glade %{ " ;;
(glade) printf "%s\n" "
map global fzf-ctags 'i' ': fzf-tag i<ret>' -docstring 'identifiers' map global fzf-ctags 'i' ': fzf-tag i<ret>' -docstring 'identifiers'
map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'classes' map global fzf-ctags 'c' ': fzf-tag c<ret>' -docstring 'classes'
map global fzf-ctags 'h' ': fzf-tag h<ret>' -docstring 'handlers' map global fzf-ctags 'h' ': fzf-tag h<ret>' -docstring 'handlers'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=maven2 %{ " ;;
(maven2) printf "%s\n" "
map global fzf-ctags 'g' ': fzf-tag g<ret>' -docstring 'group identifiers' map global fzf-ctags 'g' ': fzf-tag g<ret>' -docstring 'group identifiers'
map global fzf-ctags 'a' ': fzf-tag a<ret>' -docstring 'artifact identifiers' map global fzf-ctags 'a' ': fzf-tag a<ret>' -docstring 'artifact identifiers'
map global fzf-ctags 'p' ': fzf-tag p<ret>' -docstring 'properties' map global fzf-ctags 'p' ': fzf-tag p<ret>' -docstring 'properties'
map global fzf-ctags 'r' ': fzf-tag r<ret>' -docstring 'repository identifiers' map global fzf-ctags 'r' ': fzf-tag r<ret>' -docstring 'repository identifiers'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=plistxml %{ " ;;
(plistxml) printf "%s\n" "
map global fzf-ctags 'k' ': fzf-tag k<ret>' -docstring 'keys' map global fzf-ctags 'k' ': fzf-tag k<ret>' -docstring 'keys'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=relaxng %{ " ;;
(relaxng) printf "%s\n" "
map global fzf-ctags 'e' ': fzf-tag e<ret>' -docstring 'elements' map global fzf-ctags 'e' ': fzf-tag e<ret>' -docstring 'elements'
map global fzf-ctags 'a' ': fzf-tag a<ret>' -docstring 'attributes' map global fzf-ctags 'a' ': fzf-tag a<ret>' -docstring 'attributes'
map global fzf-ctags 'n' ': fzf-tag n<ret>' -docstring 'named patterns' map global fzf-ctags 'n' ': fzf-tag n<ret>' -docstring 'named patterns'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=svg %{ " ;;
(svg) printf "%s\n" "
map global fzf-ctags 'i' ': fzf-tag i<ret>' -docstring 'id attributes' map global fzf-ctags 'i' ': fzf-tag i<ret>' -docstring 'id attributes'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=xslt %{ " ;;
(xslt) printf "%s\n" "
map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'stylesheets' map global fzf-ctags 's' ': fzf-tag s<ret>' -docstring 'stylesheets'
map global fzf-ctags 'p' ': fzf-tag p<ret>' -docstring 'parameters' map global fzf-ctags 'p' ': fzf-tag p<ret>' -docstring 'parameters'
map global fzf-ctags 'm' ': fzf-tag m<ret>' -docstring 'matched template' map global fzf-ctags 'm' ': fzf-tag m<ret>' -docstring 'matched template'
map global fzf-ctags 'n' ': fzf-tag n<ret>' -docstring 'matched template' map global fzf-ctags 'n' ': fzf-tag n<ret>' -docstring 'matched template'
map global fzf-ctags 'v' ': fzf-tag v<ret>' -docstring 'variables' map global fzf-ctags 'v' ': fzf-tag v<ret>' -docstring 'variables'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=yaml %{ " ;;
(yaml) printf "%s\n" "
map global fzf-ctags 'a' ': fzf-tag a<ret>' -docstring 'anchors' map global fzf-ctags 'a' ': fzf-tag a<ret>' -docstring 'anchors'
} set-option buffer fzf_tag_filters_defined true
hook global WinSetOption filetype=ansibleplaybook %{ " ;;
(ansibleplaybook) printf "%s\n" "
map global fzf-ctags 'p' ': fzf-tag p<ret>' -docstring 'plays' map global fzf-ctags 'p' ': fzf-tag p<ret>' -docstring 'plays'
set-option buffer fzf_tag_filters_defined true
" ;;
esac
} }
} catch %{
echo -debug "Error while declaring 'fzf-ctags' mode"
} }
define-command -hidden fzf-tag -params ..2 %{ evaluate-commands %sh{ define-command -hidden fzf-tag -params ..2 %{ evaluate-commands %sh{
@ -809,18 +917,15 @@ define-command -hidden fzf-tag -params ..2 %{ evaluate-commands %sh{
fi fi
cmd="cd $path;" cmd="cd $path;"
if [ "$(command -v readtags)" ]; then if [ -n "$(command -v ${kak_opt_readtagscmd})" ]; then
if [ -n "$1" ]; then if [ -n "$1" ]; then
cmd="${cmd} readtags -t $kak_opt_fzf_tag_file_name -Q '(eq? \$kind \"$1\")' -l" cmd="${cmd} ${kak_opt_readtagscmd} -t $kak_opt_fzf_tag_file_name -Q '(eq? \$kind \"$1\")' -l"
else else
cmd="${cmd} readtags -t $kak_opt_fzf_tag_file_name -l" cmd="${cmd} ${kak_opt_readtagscmd} -t $kak_opt_fzf_tag_file_name -l"
fi fi
else else
if [ -n "$1" ]; then printf "%s\n" "echo -markup %{{Error}'${kak_opt_readtagscmd}' executable not found. Check if '${kak_opt_readtagscmd}' is installed}"
cmd="${cmd} grep '^\b\"$1\"\b.*\$/' $kak_opt_fzf_tag_file_name -o" exit
else
cmd="${cmd} grep -v '^!_TAG_*' $kak_opt_fzf_tag_file_name"
fi
fi fi
cmd="${cmd} | cut -f1" cmd="${cmd} | cut -f1"