Comments (9)
Generally I want to filter by candidate but maybe I want to filter by kind. So: is it possible to switch the converter within the unite buffer? i.e pressing something like and switch from the default converter to abbr_word?
:help unite#mappings#set_current_matchers()
from unite-tag.
Instead of showing k:f and k:v is possible to directly display function and variable (i think that a) it is better to show the full kind instead of the abbreviation and b) there is no need to show k: since it is clear that this third column of the unite buffer displays the tag kind).
I don't think so. Tag information has just the abbr.
You should read the real tag file.
And I think it is better to filter by kind.
from unite-tag.
Can the syntax highlighting and the spacing between columns be improved?
Fixed.
from unite-tag.
Thanks @Shougo for your replies. Two nits:
i) If I set
inoremap <silent><buffer><expr> <C-c> unite#mappings#set_current_converters(
\ empty(unite#mappings#get_current_converters()) ?
\ ['converter_abbr_word'] : [])
and press <C-c>
in the unite-tag buffer I can filter by kind. However when I press <C-c>
again I cannot use the default converter. Isn't the mapping suppose to toggle between the default converter and converter_abbr_word
?
ii) With the following minimal vimrc:
set nocompatible
let $ONEDRIVE_HOME = expand('C:/OD/Users/Pedro')
let $DOTVIM = expand('$ONEDRIVE_HOME/vimfiles')
set runtimepath+=$DOTVIM/bundle/unite
set runtimepath+=$DOTVIM/bundle/neoinclude
set runtimepath+=$DOTVIM/bundle/unite-tag
set runtimepath+=$DOTVIM/bundle/vimproc
filetype plugin indent on
nnoremap <silent> ,te :NeoIncludeMakeCache<CR>:Unite
\ tag/include<CR>
If I open the vimrc_min
file I press ,te
I see the word pat:
in the unite-tag buffer. Is it possible to suppress this? (and only show the actual matched pattern).
from unite-tag.
If I open the vimrc_min file I press ,te I see the word pat: in the unite-tag buffer. Is it possible to suppress this? (and only show the actual matched pattern).
You should execute syntax enable
.
It is concealed by syntax.
And, you should change g:unite_source_tag_max_fname_length
or g:unite_source_tag_max_name_length
.
If you can disable show location feature by g:unite_source_tag_show_location
.
Important: Please read the documentation.
from unite-tag.
and press
<C-c>
in the unite-tag buffer I can filter by kind. However when I press<C-c>
again I cannot use the default converter. Isn't the mapping suppose to toggle between the default converter and converter_abbr_word?
Because, you are wrong. You must change default matcher behavior.
inoremap <silent><buffer><expr> <C-c> unite#mappings#set_current_matchers(
\ empty(unite#mappings#get_current_matchers()) ?
\ ['converter_abbr_word', 'matcher_default'] : [])
from unite-tag.
I'm sorry @Shougo but I'm afraid I don't quite understand. Consider the following minimal vimrc:
set nocompatible
let $ONEDRIVE_HOME = expand('C:/OD/Users/Pedro')
let $DOTVIM = expand('$ONEDRIVE_HOME/vimfiles')
set runtimepath+=$DOTVIM/bundle/unite
set runtimepath+=$DOTVIM/bundle/neoinclude
set runtimepath+=$DOTVIM/bundle/unite-tag
set runtimepath+=$DOTVIM/bundle/vimproc
filetype plugin indent on
syntax enable
nnoremap <silent> ,te :NeoIncludeMakeCache<CR>:Unite
\ tag/include<CR>
au FileType unite
\ inoremap <silent><buffer><expr> <C-c> unite#mappings#set_current_matchers(
\ empty(unite#mappings#get_current_matchers()) ?
\ ['converter_abbr_word', 'matcher_default'] : [])
Now as in the GIF, open Gvim, edit the vimrc_min
file and press ,te
. You will see that
i) even though syntax
is enable the ,te
candidate show the word pat:
.
ii) If I now switch to insert mode and start searching for var
then there are no candidates (which is correct since I'm using the default matcher). Now if I press <C-c>
the matcher switches and I can filter by kind (therefore when I search for var
the Unite buffer correctly displays candidates). However if in the same Unite buffer I now erase the prompt and press <C-c>
one last tim then the matcher is not toggled: I'm still filtering by kind (searching for var
return candidates filterd by kind when and I expect no candidates to be shown since I should be using the default matcher). So the problem is that the second time I press <C-c>
the default matcher is not restored.
Sorry for being such a nuisance and thanks in advance for the help.
from unite-tag.
@petobens Confirmed. Fixed the problems. Please update unite-tag and unite.vim.
from unite-tag.
@Shougo it is working perfectly now. Thank you for the fix! :)
from unite-tag.
Related Issues (20)
- unite-tag using async is too too too slow. HOT 9
- キャッシュディレクトリのパスがおかしい? HOT 3
- Can I show tags in the currently open file only? HOT 5
- When caching done, can not find the tag in insert mode. HOT 4
- Support for alternative tags specification HOT 4
- New release HOT 4
- Support for multiple files with same tag HOT 7
- file name length HOT 5
- Add option to only show filename instead of full path HOT 2
- Unite tag/include shows functions twice in VimL HOT 3
- Add an option to specify max kind column width HOT 2
- Tags Don't Show with tag/include When First Opened HOT 1
- Add sorter with a first priority for the current file HOT 3
- open the file in the current buffer,cover my origin file,maybe it should save my file before. HOT 2
- :Unite tag:% does not work but :Unite tag does. HOT 1
- Auto Cache HOT 3
- Cursor jumps away from a definition after untoggling tag/include split HOT 4
- not working for javascript files HOT 8
- Show class name (if present) instead of filename? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unite-tag.