-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto display readme`s #8647
Comments
This would need something like #3158 to be implemented first, so that the shell can tell the terminal what the current directory is. |
This probably wouldn't be a feature of the terminal but instead something that you would implement inside of your shell instead. When #4472 eventually lands you will be able to use the Doing all this would be outside the scope of the terminal which should be a 'dumb' process isn't going to be scanning directories or rendering markdown in the first place. |
If you change from one directory to another, and each directory has its own README, then perhaps you want the README of the new directory to display in the same pane as the previous one, instead of opening a third pane. On the other hand, if you detach the README pane from the original tab to a separate tab (#4587), then perhaps you want that to keep displaying the same README regardless of what happens in the shell session afterwards. This might be implemented by allowing each pane to have a name (in addition to the pane title described in #7290). The shell could then run a command like Alternatively, Windows Terminal could support named relationships between panes, i.e. know that the README viewer pane has a |
If the shell is running on a remote computer behind (Later DEC terminals, like the VT420, support the TD/SMP protocol for multiplexing several sessions over the same serial cable. In theory, I imagine TD/SMP could be used over SSH, instead of tmux control mode. However, it does not seem to be widely implemented on servers nowadays, I cannot find a protocol specification, and it might not support features such as resizable panes. It was also patented, although the patents may have expired by now.) |
Alright, from the start, this isn't something we'd build into the Terminal by default. If anything, it'd have to be an extension, so #4000. Once #4472 lands, this will be a lot easier. Assuming
and that'll open a new split in the current directory, in the current window, running that command.
EDIT: Unsurprisingly, the above does not work. I'll stick this on the backlog for extensions for "trigger some extension behavior when the shell's current directory changes". |
How would |
🤦♂️ Yea that won't work. I'll edit my comment. That's what I get for triaging on a Sunday 😄 |
This one is a bit like that fighting type bird pokemon.
Description of the new feature/enhancement
t`would be sort of cool if there was a way to show readme’s in a new vertically split pane.
(preferably with markdown rendered like here (https://github.com/mikaelbr/marked-terminal))
Proposed technical implementation details (optional)
Search current dir level for readme.* and then auto execute split pane vertically and have it ran in marked-terminal or preferably something that is written c++ or rust. And also outputs plain txt
The text was updated successfully, but these errors were encountered: