Multi-line and piped commands #59

Closed
opened 2026-06-28 02:32:32 +00:00 by akinus · 1 comment
Owner

It seems like akclip can only copy one-line commands with no pipes. For instance. If I run:

akclip ps -aux | grep "akclip"

it will not work as intended. Some times it will throw a failure, sometimes it will just do nothing. I want akclip to be usable in all these ways:

Piped Commands:
akclip ps -aux | grep "akclip"

Multi-line commands:
akclip command 1
command 2

Joined commands:
akclip command 1 && command 2

Pipe INTO akclip:
ps -aux | grep "akclip" | akclip

akclip should capture the output of everything that comes after it, whether it be pipes, interactive output (like -f to follow journals), joined commands, etc...

I am not opposed to having to format commands like an array, but ONLY if I have to. ie:

akclip [ps -aux, ls -la, df -h]

Whatever the best solution is, so as not to change the language or syntax of the original commands too much.

It seems like akclip can only copy one-line commands with no pipes. For instance. If I run: akclip ps -aux | grep "akclip" it will not work as intended. Some times it will throw a failure, sometimes it will just do nothing. I want akclip to be usable in all these ways: Piped Commands: akclip ps -aux | grep "akclip" Multi-line commands: akclip command 1 \ command 2 Joined commands: akclip command 1 && command 2 Pipe INTO akclip: ps -aux | grep "akclip" | akclip akclip should capture the output of everything that comes after it, whether it be pipes, interactive output (like -f to follow journals), joined commands, etc... I am not opposed to having to format commands like an array, but ONLY if I have to. ie: akclip [ps -aux, ls -la, df -h] Whatever the best solution is, so as not to change the language or syntax of the original commands too much.

Auto-closed: an AI-generated fix has been opened as a PR against the devops branch. Merge it to land the change.

Auto-closed: an AI-generated fix has been opened as a PR against the devops branch. Merge it to land the change.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
akinus/akclip#59
No description provided.