Cmd/Bash input command macros #7354

Closed
opened 2026-01-31 01:01:47 +00:00 by claunia · 2 comments
Owner

Originally created by @suchislife801 on GitHub (Apr 10, 2020).

Cmd/Bash input command macros

Proposed technical implementation details

  • A method for allowing the clicking of user dynamically created buttons to call macros that contain cmd/bash commands in their native form.

For example

a. When a user is on Windows under a cmd tab, the button1_Click event could...

Windows

button1_Click event = dir
Action = list directory contents.

b. When a user is on Linux under a bash tab, the button_Click event could...

Linux

button2_Click event = ls
Action = list directory contents.

A clear and concise description of what you want to happen.

  • In the process of creating a button, the user assigns a macro to it. A macro is nothing more then a string of native commands that already exist in their own respective operating systems.

  • The buttons would have a property propTargetSystem & propIssueCommand that would allow the user to target each macro created to their respective operating system.

  • Alternatively, this could be possibly implemented as a "Favorites" dropdown menu.

Originally created by @suchislife801 on GitHub (Apr 10, 2020). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> # Cmd/Bash input command macros # Proposed technical implementation details + A method for allowing the clicking of user dynamically created buttons to call macros that contain cmd/bash commands in their native form. For example a. When a user is on Windows under a cmd tab, the button1_Click event could... # Windows button1_Click event = dir Action = list directory contents. b. When a user is on Linux under a bash tab, the button_Click event could... # Linux button2_Click event = ls Action = list directory contents. # A clear and concise description of what you want to happen. + In the process of creating a button, the user assigns a macro to it. A macro is nothing more then a string of native commands that already exist in their own respective operating systems. + The buttons would have a property propTargetSystem & propIssueCommand that would allow the user to target each macro created to their respective operating system. + Alternatively, this could be possibly implemented as a "Favorites" dropdown menu.
claunia added the Issue-FeatureResolution-Duplicate labels 2026-01-31 01:01:47 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Apr 10, 2020):

Okay so this is kinda similar to #5273. There's also #2046, which could be combined with #a-shortcut-action-for-sending-input (I can't find the issue ATM) might be able to achieve this.

Since this is so similar, I think I'm just going to resolve it as a dupe. Thanks!

/dup #5273

@zadjii-msft commented on GitHub (Apr 10, 2020): Okay so this is kinda similar to #5273. There's also #2046, which could be combined with #a-shortcut-action-for-sending-input (I can't find the issue ATM) might be able to achieve this. Since this is so similar, I think I'm just going to resolve it as a dupe. Thanks! /dup #5273
Author
Owner

@ghost commented on GitHub (Apr 10, 2020):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Apr 10, 2020): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#7354