contour
contour copied to clipboard
create shell integration scripts
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 ...
vtsendto send files to host terminal, landing in host's (configurable) Downloads folder
Checklist
- [x] zsh
- [x] fish
- [ ] bash
Let's do bash at a later time, when we also have users that use bash. :)
Reopen the issue and put them into a milestone bucket called "future features" or something.
i.e. basically buying some more time without forgetting that one wanted to do that :)
@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?
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!
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).
Iterm2 has some shell integration scripts but not sure if those are exactly the same as you're looking at.
I suppose fish is done by this PR https://github.com/contour-terminal/contour/pull/1001 ?
yes, it is. :)
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 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 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. :-)