Replies: 3 comments 8 replies
-
Hey, I'm hoping to make this a bit clearer. Firstly, this is mainly done to:
The workflow for solving this would be something like: (Quoting @XVilka's message from Rizin Dev)
You can also see the issues related to this pinned on the corresponding project: https://github.com/rizinorg/rizin/projects/5 |
Beta Was this translation helpful? Give feedback.
-
|
Please note, that some of the case RZ_CONS_KEY_F1:
cmd = rz_config_get(core->config, "key.f1");
if (cmd && *cmd) {
ch = rz_core_cmd0(core, cmd);
} else {
visual_help(core);
}
break;
case RZ_CONS_KEY_F2:
cmd = rz_config_get(core->config, "key.f2");
if (cmd && *cmd) {
ch = rz_core_cmd0(core, cmd);
} else {
visual_breakpoint(core);
}
break;But when #384 is done, ideally it should be only called once, and the same for Visual, Panels, and Visual Menus modes. |
Beta Was this translation helpful? Give feedback.
-
|
It should become a core priority for 0.3.0 - hopefully we will be able to eradicate all unnecessary such calls. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The current state of
rz_core_cmdvs the API in the code, as mentioned by @ret2libc in 0.2.0 Priorities is:According to the current search results for rz_core_cmd, there are 18 files that are still using
rz_core_cmd:librz/core/agraph.cRefactor Graph mode (librz/core/agraph.c) to use API instead of commands #397/librz/core/tui/vmenus*to use API instead of commands #491librz/core/tui/panels.c) to use API instead of commands #383From these files, I think the ones with higher priorities are the "base" ones, such as
librz/core/core.candlibrz/core/cmd.c.Honestly, I have no clue of the changes that need to be performed for using the API instead of
rz_core_cmd(I'll investigate), but I would make these two "base" files a priority for 0.2.0 and leave the others for another milestone.Beta Was this translation helpful? Give feedback.
All reactions