vim-qlist icon indicating copy to clipboard operation
vim-qlist copied to clipboard

Ability to alter isident inside of Dlist [Enhancement request]

Open fourjay opened this issue 8 years ago • 4 comments

Please consider adding the ability to set a local (preferably per buffer) ability to set isident inside of the Dlist command. Reason looks like vim's dlist is not very workable outside of C, in that isident is overloaded elsewhere. I was trying to get dlist working inside of viml (as a first step to extending to other languages) and found the help warning

Careful: If you change this option, it might break expanding environment variables.

A little experimentation and I see altering isident does help vim find definitions, but it also breaks other things. Which makes ability to adjust this temporarily inside the Dlist command potentially useful.

fourjay avatar Feb 16 '17 20:02 fourjay

FWIW, I've got a sort of workaround in place. In my scenario, without isident, the generic search breaks. So I have a wrapper function with an empty search and then, from your vim-qf plugin, using Keep to limit the search.

fourjay avatar Feb 16 '17 20:02 fourjay

Hi! Would a static list of adequate per-filetype isident be an adequate solution?

romainl avatar Feb 17 '17 09:02 romainl

I think so. From a cursory look at the vim-use list conversation I suspect Bran knows that this is an issue, but it's on a way back burner. It looks like all the definition|method jumping was long ago hard-coded with C in mind and it's hard to undo (include, define etc. all are more less made for C) Since your plugin more or less completely wraps dlist and cousins [d it's a good place to put a workaround for isidentweaknesses. Thanks for the plugin. I've just discovered vimsincludecorner and am addingdefinesandincludes`` to several odd languages I work with (it's quite nice to add to ansible for example).

fourjay avatar Feb 17 '17 13:02 fourjay

I will take a look at this over the week-end.

romainl avatar Feb 17 '17 14:02 romainl