Open XVilka opened 3 years ago
rz_core_cmd0(core, "pg");
For the above command, if this is what's getting executed, I can get an API just for that, I suppose. Same calls are in agraph as well.
I think this can probably be moved to a later release. It's just refactoring and we seem to have already a lot of things in our hands.
Currently, the code of Visual modes heavily relies on running commands instead of just calling the proper API functions. To reduce the overhead, code cruft, and code breakage in case of the command changes it is important to remove all those command calls and call the proper API directly.