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

Add the tagJump preview as bat command. #4

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

tittanlee
Copy link

It is a simple preview for ctags jump.
Options of --bind ="?:toggle-preview" that would toggle preview switch.

Copy link
Owner

@zackhsi zackhsi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey thanks! Love the feature. Can you take a look at my comment? The commented-out fields are useful for filtering.

@@ -52,10 +65,14 @@ function! s:tag_to_string(index, tag_dict)
call add(components, s:magenta(a:tag_dict['filename']))
endif
if has_key(a:tag_dict, 'class')
call add(components, s:green(a:tag_dict['class']))
"call add(components, s:green(a:tag_dict['class']))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These components are added to each line in order to filter on them with normal fzf syntax.

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.

2 participants