Tag search in ctrlp-py-matcher
See original GitHub issue@FelikZ ,
thanks for creating this plugin… it really sped up the file/MRU search.
However, when I tried to search tags, it didn’t really show any tags.
I added the following line:
let g:ctrlp_match_func = { 'match': 'pymatcher#PyMatch' }
to my .vimrc
, and it led to fast fuzzy searching for files. However, when I tried to search tags using :CtrlPTag
, with a tag Database
from one of my files, it gave no results.
Then I commented out let g:ctrlp_match_func = { 'match': 'pymatcher#PyMatch' }
, and did :CtrlPTag
with a tag Database
from one of my files. This time, it was slow to find that tag, but it did fine the tag.
Is there any additional settings I should use to enable tag search using this plugin?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:10 (2 by maintainers)
Top Results From Across the Web
Search papers match Tag 1 -or- Tag 2? - Paperpile Forum
This will show all papers that match all of the selected tags. ... I could see at some point offering an advanced search...
Read more >Searching by Tag - Khoros Atlas
Hi All, We used to be able to search using tags:( ) in the search page and get only matching tags but I...
Read more >Customize Airline Tagbar Extension To Include Current Tags ...
Before posting an issue: Make sure to search for a solution in old issues ... Tagbar is a Vim plugin that provides an...
Read more >Google Tag Assistant
Google Tag Assistant (Legacy) is a free Chrome extension that helps you make sure your Google tags such as Google Analytics, Google Tag...
Read more >Analytics Tags Guide | Swiftype Documentation
Each search query can attach a tag. A tag is an analytics parameter: curl -X GET 'https://host-2376rb.api.swiftype.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@alphaCTzo7G
misc.html
is encoded in windows-1252, which obviously isn’t UTF-8. For various reasons uctags doesn’t translate any encodings (there are long topics you can find about that on uctags issue tracker, but the main reason is that it’s incredibly hard to do right – and there are some cases where there is no good solution), and sadly one of the possible issues arising is having an output tag file with mixed encodings when processing multiple files. ectags never did anything with encodings either (actually, way less), and the difference you see are improper truncation in uctags (whereas ectags didn’t truncate at all, and you can get this behavior in uctags with--pattern-length-limit=0
) which is what I fixed in the linked PR. In the case ofmisc.html
it’s likely that uctags is simply outputting more tags than ectags did. Anyway, be it ectags or uctags, they are likely to output non-UTF-8 tags if the source files are not already UTF-8. This is even becoming more and more prominent with languages allowing Unicode identifiers, and uctags parsers supporting those.However, after all me saying uctags doesn’t handle encoding conversion, it actually partly does if you tell it to though the
--input-encoding
(and/or--input-encoding-<LANG>
) and--output-encoding
options. This support is not perfect yet (I didn’t follow this recently, but it used to be limited), and it requires the caller to decide on encodings, but it might help in some circumstances.At any rate, you should probably find a way for invalid UTF-8 not to break your software, because it’s unfortunately unlikely to be “fixed” anytime soon, and it’s a fairly common thing (in most cases it’ll be because the source was
ISO 8859-something
orWindows-something
or alike, and on rare occasions the source will actually be utter garbage with mixed things and random bytes here and there – been there, seen that).@alphaCTzo7G
None that I know. The only thing that comes to the mind, maybe its possible to convert BOM to non-BOM before eval takes place?