Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

codeaction extract widget: workflow could be improved #7

Open
unknowledgeable opened this issue Aug 26, 2020 · 0 comments
Open

codeaction extract widget: workflow could be improved #7

unknowledgeable opened this issue Aug 26, 2020 · 0 comments

Comments

@unknowledgeable
Copy link

Not sure if it's just me doing it wrong or something but to extract a widget and give it an appropriate name I have to:

  • visually select the the widget I want to extract
  • trigger coc-codeaction-selected - I'm doing this from whichkey with (coc-codeaction-selected)
  • select the code action i.e. type number then enter
  • this extracts the widget with the class name NewWidget
  • select NewWidget
  • coc-rename NewWidget
  • backspace to get rid of all the characters and then finally...
  • enter the class name I want

Is this how it should work? Is there not a better workflow? e.g.

  • cursor is anywhere on widget name
  • trigger coc-codeaction (not necessarilly coc-codeaction-selected)
  • select code action
  • prompt asks for class name
  • widget is extracted and class name is given
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant