warpdotdev / Warp

Warp is a modern, Rust-based terminal with AI built in so you and your team can build great software, faster.
https://warp.dev
Other
21.36k stars 373 forks source link

Allow user to save command with Natural language #5376

Open AmicoderDev opened 3 weeks ago

AmicoderDev commented 3 weeks ago

Dupe Check

Describe the solution you'd like?

User flow

User:
I need to find and stop a port.

System:
To find which process is using a specific port, you can use the ss command with the -ltnp options to show listening TCP sockets and their corresponding processes. Let’s start by checking the open ports:

ss -ltnp

Warp (providing the solution):
Here are several ports being used by different processes. If you want to stop a process using a particular port, follow these steps:

  1. Identify the open ports and their corresponding processes using ss -ltnp.
  2. To stop a specific service/process, you need to identify its process ID (PID) and then terminate it.

User:
Save the entire process into a notebook.

Warp:
The command to save this process locally is:

echo "Process to Find and Stop a Port" > process-notebook.txt && \
echo "1. Use the following command to list open ports and their processes:\n   ss -ltnp" >> process-notebook.txt

This creates a process-notebook.txt file in your local directory.


User:
Save the whole process into the notebook but with dynamic port input from the user.

Warp:
The process has been saved in the process-notebook.txt file in the current directory. It includes instructions on dynamically handling user-provided port numbers to find and stop processes.


User:
I meant to save it to Warp Drive.

Warp:
It seems "warp drive" hasn't been specified as a directory or mount point in your system. If you are referring to Warp Drive, the feature within the Warp terminal to save commands and workflows, here’s how you can proceed:

Warp Drive allows you to save commands for future use directly in the terminal's interface, not through shell commands. You can access this feature by interacting with Warp's GUI. Would you like to proceed with that?


Is your feature request related to a problem? Please describe.

It's not a problem. It's a feature that the user(Me) needs to improve productivity.

Additional context

No response

How important is this feature to you?

3

Warp Internal (ignore) - linear-label:39cc6478-1249-4ee7-950b-c428edfeecd1

None

dannyneira commented 3 weeks ago

Thanks for this feature request, @AmicoderDev! Currently, you can't save commands directly from Agent mode, but if you've run the command provided by AM, you can save it by right-clicking on the Block and selecting "Save as Workflow" or CMD-S/CTRL-SHIFT-S when a block is selected.

CleanShot 2024-10-15 at 12 06 26

To anyone else interested in this feature, please add a 👍 to the original post at the top to signal that you want this feature, and subscribe if you'd like to be notified.