Comments (18)
Thanks, Folks who have π and commented on this request. I believe we've begun to investigate the possibility of hiding/collapsing blocks as it's been a common request. No official ETA on any launch, but we'll post any additional updates on this thread.
We appreciate your patience and interest in Warp!
from warp.
Came looking for the same feature
from warp.
this was filed in July 2021, how difficult it is to make blocks at least collapsable, you already received a bunch of similar requests.
from warp.
I spent half an hour digging through docs and expected this to be a built-in feature, the same way that ie. Jupyter notebooks allow you to toggle a block's output. +1 on this request!
from warp.
This is super useful to cleanup the screen from intermediate commands with noisy output.
I use it regularly with the Apple Terminal (cmd+L).
from warp.
from #291 @JosephTLyons
I suppose that does bring up the question of "what happens when text being searched for shows up within a collapsed cell?" Does the cell expand while Warp is in the "search" state, and collapse again when the "search" state is exited? I'm not sure.
Alternatively, maybe the user doesn't care about output from the collapsed cells being included within the search, so maybe when a collapsed cell has a match in it, the collapsed cell is just highlighted, and it is up to the user to manually open the ones they care about and re-collapse them, if they want.
from warp.
Shameless new comment π to this. Only gripe I've run into. Great software!
from warp.
Wish for older blocks to auto-collapse (to their sticky header) as they move out of the current viewport when I create new blocks. So that when I scroll up, I see a bunch of collapsed blocks, and I only need to open the block that I'm interested in (which would stay open permanently even when I scroll back down).
from warp.
This functionality would compliment / be complimented by #1
With both there might be some utility of offering the option to re-insert a previous command at the end of the history (without actually re-running and promenantly linking back to the original βΒ or possibly even actually rerunning but still linking, offering a diff of output?)
if one did that, it would be potentially useful to be able to (re)excerpt the same command different ways: e.g. highlighting (simultaneous) detection of problems (or say, a problem requiring intervention on several hosts/instances of a service) that were dealt with in serial
from warp.
Find is a good point! I imagine it visually indicating that the option is in the collapsed block, and leaving it up to the user to un-collapse. I think expanding and re-collapsing may be jarring UI-wise
from warp.
from #291 @elviskahoro
What are some of the options for the visual indicator?
In terms of passive indicators, I'm only able to come up with changing the divider color and maybe the collapse caret color to yellow (in the case of dark theme) / whatever the highlight hex code is.
For the find dialog, I'm wondering if there could be a checkbox or icons (like in this picture from sublime) where the developer could select whether they wanted the blocks to expand when navigating to the next highlight (if the highlight is in a collapsed block) via find next and find prev.
from warp.
from #291 @elviskahoro
A second thing that just came to mind is including the number of occurrences for that particular block as an icon next to the caret. My initial instinct is to the right of the caret, but that wouldn't scale well for large numbers like 3462 vs 3. No numeric would imply there's just one occurrence.
So the first highlighted block would have 3 occurrences of whatever was searched, and the block after would only have 1.Excuse my horrendous drawing skills.
from warp.
from #291 @elviskahoro
Can also experiment with a solid line, dotted line, dashed line, gradient line?
I wonder if using a dashed line would open up some possibilities in term of communicating more information. See picture and explanation below:
In the first block we have three dashed lines but the middle one is colored blue. In the second block we have three dashed lines but they're all yellow. Maybe this type of variation could be leveraged to signal an extra piece of information to the developer? Maybe the blue on is the currently selected block? We can brainstorm other things as well that are good to communicate in a first glance.
Flashing / fading in and out can also be another kind of indicator.
from warp.
I imagined it as highlights in the scrollbar - but its not always visible!
Thanks for the ideas! Shikhiu will be able to draw something great! :D
from warp.
from #291 @elviskahoro
Support (collapse all except current, specific ones, etc)
from warp.
This might not be directly related, but I did not find any issue about it β would it also be possible to support folding of some output, like console.group
from node.js programs?
from warp.
I too was assuming this would be available right from the start. A workaround can be to use the filter feature and search for something that doesn't exist (just type some gibberish) and the block will collapse. You can reset the filter to "expand" the block again. But it would be way better to have native support for this.
It would also be great to have an option so that blocks automatically collapse if they exceed some defined line count that can be adjusted in the settings. And/or to have blocks auto-collapse once they are a certain number of items back in the history, so it's easier to scroll back in your history.
from warp.
I just contributed to the crowdfunded bounty on this issue.
Each contribution to this bounty has an expiry time and will be auto-refunded to the contributor if the issue is not solved before then.
This is an 80% PR author bounty, with 80% of the reward going to the merged PR author.
from warp.
Related Issues (20)
- [Linux] Warp freezes on startup HOT 23
- Hotkey changes window focus HOT 2
- Warp constantly flickering-blinking HOT 8
- [Linux] Warp doesn't work on `v0.2024.04.16.08.02.stable_01` HOT 11
- Warp not using system clipboard for paste HOT 1
- Failed to open window: No usable wgpu adapter was found HOT 8
- Move workflows between personal to team HOT 1
- Display the number of commits that have not been pushed to the git branch HOT 1
- .rpm does not verify: Payload SHA256 digest: BAD HOT 4
- Open the workflow command in a new tab HOT 1
- Feature Request: Delete Block HOT 3
- sudo !! HOT 5
- Breaking the characters HOT 2
- python getpass doesn't work HOT 2
- Flickering on resize HOT 2
- workflow command does not work when screen attached after log into Ubuntu from mac os. HOT 1
- Setting which browser to be used for opening links on Warp. HOT 1
- Warp always stuck at Starting Shell HOT 4
- Updates on Mac HOT 2
- VIM Input not working correctly on previous commands HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from warp.