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

Closed
Tracked by #1929
mwestphal opened this issue Dec 19, 2024 · 3 comments
Closed
Tracked by #1929

Add alias command #1807

mwestphal opened this issue Dec 19, 2024 · 3 comments
Assignees
Labels
good first issue Good for newcomers help wanted Please help with this issue! source:libf3d
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 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
@v0id-strike
Copy link
Contributor

i am working on it

@mwestphal
Copy link
Contributor Author

#1895

@mwestphal
Copy link
Contributor Author

Done in #1895

@github-project-automation github-project-automation bot moved this from To do to Done in F3D Feb 27, 2025
@mwestphal mwestphal mentioned this issue Feb 27, 2025
35 tasks
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
Projects
Status: Done
Development

No branches or pull requests

2 participants