Open heartacker opened 11 months ago
Guys this is totally the notebooks thing I was talking about 😉
But also, there's probably some other useful things we're working on here for "Tasks" - basically, having a big long list of sendInput
actions that you can quickly activate - either through the suggestions UI, or maybe even adding a "Tasks" pane.
(we'll probably have more to say after the holidays)
Okay so, you may be interested in the Suggestions UI and Tasks, which are new in 1.19: Using SendInput Actions in the Suggestions UI
I have Big Plans for these in upcoming releases - some of which is tracked in #13445 (though I think a better thread is floating around here somewhere)
see also:
no, I know this, and we DO NOT want to config the setting.json, we just want to code in some text file for TeamWorks
so, we want to open the text and the send those command easily, through terminal
No worries! I've got a lot of related ideas in this space, and untangling them all is sometimes a bit tricky.
You're looking for something more like this?
Yea? A file, with blocks of code that lets you run individual commands, or the whole block?
This is so innovative.
and a little simple txt file for me
We can run the line to terminal where curser focused (with shortcut )
or select some block to run
Congrats, this gets to be the thread then ☺️
I've been ideating in this space for a long time, just never actually filed a thread for it. I'm gonna co-opt the OP here to add some other notes. Thanks!
@zadjii-msft here is some demo using vscode.(yes, we can do this with vscode)
reserving for notes for hackathon
9da196da7da7e342698a354a322cfc0265cc9d04: dev/migrie/fhl/notebook-proto-000
was the eldest attempt here, circa March 2023. Notably predates tab tear out.
Actual relevant diff was: https://github.com/microsoft/terminal/compare/a04a51bbe4270d65a5a58652772b00fb719261ac...dev/migrie/fhl/notebook-proto-000
2024 spring hack is branched off dev/migrie/fhl/2024-spring-merge-base
, https://github.com/microsoft/terminal/compare/dev/migrie/fhl/2024-spring-merge-base...dev/migrie/fhl/2024-inline-notebook
dev/migrie/f/sui-panes
dev/migrie/fhl/2024-spring-merge-base
2024-march-14 lunch screenshot:
FTCS A
, we make a new block.
Overall, project was a huge success. Clearly, it's possible to have Terminal notebooks that have a single hidden connection & terminal core, and then have a markdown frontend for that notebook, with each block of output rendered separately.
However, at this point, one should probably ask: why the heck isn't this just .ipynb
's? Especially with the existence of:
Couldn't the Terminal just be a kernel for that? There's not really a reason why not, right? And if we want to do that, then we really don't need... any... of what was written here. I should have probably done more research first.
There's probably also still value in the side-by-side UX. Probably.
I'm gonna leave the above comment for the "inline notebooks" investigation that eventually petered out, and use this one for side-by-side markdown in the Terminal
Branch map:
dev/migrie/f/sui-panes
dev/migrie/fhl/2024-spring-merge-base
2024-march-15 end of hackathon:
Could you please provide a another text base panel, not only markdown panel?
Sure, why not. Rendering plaintext is easy comparatively to rendering markdown in WinUI 😜
Sure, why not. Rendering plaintext is easy comparatively to rendering markdown in WinUI 😜
thank ,now i just need a short cut to send the line command without text_selected ,or selected_text command ,
after that ,we don't need copy->paste->commit line
Pre-requisite: #997
Spec in progress in https://github.com/microsoft/terminal/blob/dev/migrie/s/north-star/doc/specs/NorthStar/Markdown%20Notebooks.md
maintainer notes: original OP below the break
Description of the new feature/enhancement
For many developers, especially embedded developers, they would pre-define many text commands and save them in a text file. If WT can split views and open and display text in one view, we can quickly send the text commands to the terminal. I can send lines, send selected blocks, or send the entire content of the file, and preset some shortcuts.
Proposed technical implementation details (optional)