Feature request: An execute flag, similar to '-e' on a lot of other terminal emulators #716

Closed
opened 2 months ago by Lohse · 4 comments
Lohse commented 2 months ago

Basically the title, the option to run foot -e [COMMAND], where the terminal opens, and executes COMMAND as the first thing.

For example, running foot -e cmatrix should open the terminal and run cmatrix immediately.

Basically the title, the option to run `foot -e [COMMAND]`, where the terminal opens, and executes `COMMAND` as the first thing. For example, running `foot -e cmatrix` should open the terminal and run `cmatrix` immediately.
Collaborator

If this is just for your own use, you can accomplish the same thing by simply running foot cmatrix. If it's for the sake of emulating xterm -e, because some program launchers pass -e by default, see #184.

Although, since writing that comment in #184, I think we've probably reached the point where it makes sense to just "support" -e (by ignoring it), to avoid the barrage of duplicate issues.

If this is just for your own use, you can accomplish the same thing by simply running `foot cmatrix`. If it's for the sake of emulating `xterm -e`, because some program launchers pass `-e` by default, see https://codeberg.org/dnkl/foot/issues/184#issuecomment-150624. Although, since writing that comment in #184, I think we've probably reached the point where it makes sense to just "support" `-e` (by ignoring it), to avoid the barrage of duplicate issues.
Poster

Damn, I didn't even realise. I'm sorry for the inconvenience, I'll close the issue. But yeah, you might be right to include a -eand ignore it, or at least disclose its unimportance in the docs. Anyway, thank you for the response.

Damn, I didn't even realise. I'm sorry for the inconvenience, I'll close the issue. But yeah, you might be right to include a `-e`and ignore it, or at least disclose its unimportance in the docs. Anyway, thank you for the response.
Lohse closed this issue 2 months ago
Collaborator

@Lohse No worries. It's understandable that people's first reflex is to look for an -e option.

I'll probably submit a PR later, if @dnkl agrees that ignoring -e is a reasonable change.

@Lohse No worries. It's understandable that people's first reflex is to look for an `-e` option. I'll probably submit a PR later, if @dnkl agrees that ignoring `-e` is a reasonable change.
craigbarnes added the
duplicate
label 2 months ago
Owner

I don't really like it, but also realize that, even if we fix every single application out there (to not use -e), there'll be a new one making the assumption tomorrow...

And furthermore, I think it would be a really bad idea to use -e for something else. And that means we might just as well do what @craigbarnes suggests - ignore it.

I don't really like it, but also realize that, even if we fix every single application out there (to not use `-e`), there'll be a new one making the assumption tomorrow... And furthermore, I think it would be a really **bad** idea to use `-e` for something _else_. And that means we might just as well do what @craigbarnes suggests - ignore it.
dnkl referenced this issue from a commit 2 months ago
Sign in to join this conversation.
No Milestone
No Assignees
3 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.