contour icon indicating copy to clipboard operation
contour copied to clipboard

create shell integration scripts

Open christianparpart opened this issue 4 years ago • 12 comments

For at least bash and zsh

For preexec:

  • Add vertical line marker
  • Disable text reflow

For preexec:

  • Enable text reflow

On init, maybe install functions to:

  • display images (like icat)
  • change profile to ...
  • vtsend to send files to host terminal, landing in host's (configurable) Downloads folder

Checklist

  • [x] zsh
  • [x] fish
  • [ ] bash

christianparpart avatar Jan 24 '21 07:01 christianparpart

Let's do bash at a later time, when we also have users that use bash. :)

christianparpart avatar Jun 10 '21 13:06 christianparpart

Reopen the issue and put them into a milestone bucket called "future features" or something.

whisperity avatar Jun 11 '21 14:06 whisperity

i.e. basically buying some more time without forgetting that one wanted to do that :)

christianparpart avatar Jun 11 '21 14:06 christianparpart

@data-man I think in on of your screenshots I saw you using fish shell, is that right? Would you mind having a look at how easy it would be to add contour shell integration for fish?

christianparpart avatar Jul 05 '21 15:07 christianparpart

I saw you using fish shell, is that right?

Exactly!

Would you mind having a look at how easy it would be to add contour shell integration for fish?

Will do!

data-man avatar Jul 05 '21 17:07 data-man

Can we use some template engine for this? E.g. https://github.com/pantor/inja or https://github.com/kainjow/Mustache (both are header-only).

data-man avatar Jul 07 '21 06:07 data-man

Iterm2 has some shell integration scripts but not sure if those are exactly the same as you're looking at.

WSLUser avatar Jul 08 '21 18:07 WSLUser

I suppose fish is done by this PR https://github.com/contour-terminal/contour/pull/1001 ?

Yaraslaut avatar Jan 26 '23 07:01 Yaraslaut

yes, it is. :)

christianparpart avatar Jan 26 '23 07:01 christianparpart

the question is if bash is relevant at all as of 2023. Most people seem to be using ZSH anyways, and Fish is the new rising star (in my opinion), people are more likely to drive away from bash. We might just close this ticket alltogether and wait for someone actually wanting bash completion. Then it can still be added. No need to create artificial maintenance burdens with no real users behind :)

christianparpart avatar Jan 26 '23 07:01 christianparpart

@christianparpart Completion or integration? Two different things. Bash integration would still be useful for cases where people just start a small job (e.g. in docker or a remote server) without a full developer environment but would still like to use at least the small features like the "jump to prompt". Really important feature even in maintenance activities, not just development.

(Personally, I'm using ZSH and will continue using ZSH, fish is too arcane for me, so I'd prefer if ZSH were kept in the front of the picture.)

whisperity avatar Jan 26 '23 10:01 whisperity

@whisperity we can of course to the integration. I just forgot how to do it, I can't believe I did. thanks for raising the need. :-)

christianparpart avatar Feb 17 '23 15:02 christianparpart