Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
GavinSmith0123 edited this pageJul 18, 2025 ·5 revisions

Kakoune provides thectags.kak script, but this won't work with out of the box ctags from sourceforge.net. It relies on the readtags command that is available in universal-ctags, but not installed by default. The easiest way would be to use ctags fromhttp://github.com/universal-ctags/ctags which will install the readtags command.

Search fortags file

Use the followinghook to search for atags file in the current directory, then parent directories, until found or the home or root directory is reached.

hook global KakBegin .* %{    evaluate-commands %sh{        path="$PWD"        while [ "$path" != "$HOME" ] && [ "$path" != "/" ]; do            if [ -e "./tags" ]; then                printf "%s\n" "set-option -add current ctagsfiles %{$path/tags}"                break            else                cd ..                path="$PWD"                # Replace any instances of repeated '/' with a single '/'                path=`echo "$path" | tr -s /`                                               fi        done    }}

This is equivalent to vim's:set tags=./tags; option.

Key mappings

This makesC-] look up the symbol under the cursor, similarly to vim:

map global normal <c-]> <a-i>w:ctags-search<ret>

UseC-o as usual to go back.

Clone this wiki locally

[8]ページ先頭

©2009-2025 Movatter.jp