Releases: tuhdo/semantic-refactor
Releases · tuhdo/semantic-refactor
Bug fixes
Bug fix and features
Bug fix:
- Improve rename performance
- Correctly move and generate function prototype with template information.
- Don't insert newlines when moving tag or generating function prototype.
- Improve Lisp code formatting logic.
Features:
- Add Evil key binding support when Evil is detected.
- User can customize
srefactor-newline-threshold
: If a token is about to be inserted, if the current posistion exceeds this threshold characters, insert the token in the next line isntead. Note that this does not account for indentation but the total number of characters in a line.
Semantic Refactor 0.3
- Lot of bugs fixed
- Local variable renaming now has highlighting over actual variable instances to be renamed. As a reminder, actual variable instances mean that only variable instances of the same type with the same name in the same scope. For example, a user may see two variables,
A::var_1
andB::var_1
with the same name and the same type, but onlyA::var_1
is highlighted when renaming andB::var_1
is not highlighted, because the one highlighted is in the same scope as the variable user chose to rename. - Improve getter/setter generation:
- Users can specify a regexp to remove a part of variable name such as prefixes like "m_" or "_".
- Users can capitalize the first character of variable name in getter/setter with
srefactor--getter-setter-capitalize-p
. - Allows getter/setter to be inserted in other file (file with the same name but different extension).
- Add initial support for Emacs Lisp refactoring. See one line/multiple line transformation demo.
- Add initial support for Clojure refactoring similar to Emacs Lisp. However, clojure-semantic must be installed.