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

Add alias command #1807

Open
mwestphal opened this issue Dec 19, 2024 · 1 comment
Open

Add alias command #1807

mwestphal opened this issue Dec 19, 2024 · 1 comment
Assignees
Labels
good first issue Good for newcomers help wanted Please help with this issue! source:libf3d type:enhancement New feature or request
Milestone

Comments

@mwestphal
Copy link
Contributor

mwestphal commented Dec 19, 2024

Is your feature request related to a problem? Please describe.
F3D support commands that can be inputted using console or command-script.
Add a new command with action alias that takes two arguments so that users can defined their own commands.

Usage: alias action "value"

    action is the action of the command
    value is the command to run, it should be a single token

Add an alias for a command wich is an action action with any arg, and trigger the provided command value

Describe the solution you'd like

  • in interactor_impl.cxx add a new command with action alias
  • In the alias action, store provided action and value in a map
  • In the triggerCommand method, check the alias map
@mwestphal mwestphal added type:enhancement New feature or request good first issue Good for newcomers source:libf3d help wanted Please help with this issue! labels Dec 19, 2024
@mwestphal mwestphal added this to F3D Dec 19, 2024
@mwestphal mwestphal moved this to To do in F3D Dec 19, 2024
@mwestphal mwestphal added this to the 3.1.0 milestone Dec 19, 2024
@void-inject
Copy link

i am working on it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Please help with this issue! source:libf3d type:enhancement New feature or request
Projects
Status: To do
Development

No branches or pull requests

2 participants