[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [kate] [Bug 327994] wish: More "intelligent" searching on variable names
From:       Richard Neill <kde () richardneill ! org>
Date:       2014-06-30 21:26:45
Message-ID: bug-327994-17878-IjZgN4oJjR () http ! bugs ! kde ! org/
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=327994

--- Comment #3 from Richard Neill <kde@richardneill.org> ---
Thanks for your suggestion, Kåre.
I agree about regexps being powerful, and I do use them, but it's a bit of a
pain to type one every time I want a simple search. For example, in PHP, for a
variable $x, then I'd need to type (I think):  \$\{?x\b  while for a variable
$x['y']  I'd need to type in:   \$\{?x[("|'|)y\b   
(Likewise, for Perl,  searching for $a  usually also wants to find @a.) 
This makes the general process of re-factoring somewhat trickier. Ideally, I'd
like to be able to just select a variable, and find all instances of it (no
matter which variation of the syntax is used).
I realise that this will be harder in some languages than others. It's also OK
to have false positives (eg literal-quoted strings), but not false negatives.

Perhaps the generalisation of this request is for a "refactoring" plugin for
Kate.

-- 
You are receiving this mail because:
You are watching all bug changes.=
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic