dantleech
dantleech
`current_path` is what the [context menu](https://github.com/phpactor/phpactor/blob/develop/plugin/phpactor.vim#L131) needs, however this is [mapped](https://github.com/phpactor/phpactor/blob/develop/lib/Extension/Rpc/menu.json#L6) to `path` by Phpactor (you may also be interested in the [Handler](https://github.com/phpactor/phpactor/blob/develop/lib/Extension/CodeTransform/Rpc/RenameVariableHandler.php#L52) which will progressively ask for missing information...
You can use it in Symfony, it will not use the OutputInterface though, but that's fine?
``` if ($event instanceof MouseEvent) { if ($event->kind === MouseEventKind::ScrollDown) { $this->selected--; } if ($event->kind === MouseEventKind::ScrollUp) { $this->selected++; } } ```
Probably not a bad thing considering it can either be an enum or a VO - but it's also a hot point (the buffer diff) so 🤷
The current design implements a form of this but without signifying if it accepted the responsiblity or not, which is the problem. The good thing with: ``` render(Wifdget $widget) {...
Maybe leave it for now, there are other ways to do this and it's not really an issue right now
You would typically run a TUI application in an event loop and rebuild the model and render the page on every "tick" so everything is "dynamically" updated. See the example/demo...
Does https://github.com/php-tui/php-tui/tree/main/example/demo help?
Which is .... raw .... but the basics are there.
Which O/S do you use?