resyntax icon indicating copy to clipboard operation
resyntax copied to clipboard

User interface ideas

Open jackfirth opened this issue 4 years ago • 5 comments
trafficstars

How should resyntax surface suggestions to users? I can think of several possibilities:

  • A DrRacket plugin that shows you suggestions for the current file. Maybe something similar for racket-mode, maybe even something hooked up to racket-langserver.
  • A GitHub integration that makes suggestions at code review time, possibly with some way to automatically commit them to the pull request branch.
  • A GitHub Actions workflow that automatically opens a pull request refactoring your code once a day/week/etc.
  • A command-line tool for refactoring files directly.
  • A web app where you can tell a bot to refactor a racket package and open a pull request.

Ideas and opinions welcomed!

jackfirth avatar Jan 29 '21 21:01 jackfirth

Gave up on the github pull request integration approach for now. Seems there isn't yet a way for github actions to produce annotations: https://github.community/t/what-are-annotations/16173

jackfirth avatar Feb 02 '21 23:02 jackfirth

New user interface idea: a Discord bot (and/or a Slack bot) so that people can run resyntax over code in chatrooms and get suggestions that way. Would be especially useful in the #help channel of the Racket Discord server, where students often show up and share code looking for advice.

jackfirth avatar Feb 25 '21 23:02 jackfirth

Do you have plan to make some functions as interface? Then racket-mode or racket-langserver can reuse them.

dannypsnl avatar Mar 22 '22 13:03 dannypsnl

Yes, though that'd be the programmatic interface. I'm not sure what it will look like yet.

jackfirth avatar Mar 28 '22 09:03 jackfirth

Maybe a function type is file -> (listof suggestion), a suggestion would be a text -> text? From my understanding this model can fit racket-langserver and racket-mode both.

dannypsnl avatar Apr 02 '22 09:04 dannypsnl