Giter Site home page Giter Site logo

Comments (18)

dannyneira avatar dannyneira commented on May 12, 2024 5

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.

adaboese avatar adaboese commented on May 12, 2024 3

Came looking for the same feature

from warp.

alexander-koshuta avatar alexander-koshuta commented on May 12, 2024 2

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.

maebert avatar maebert commented on May 12, 2024 2

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.

c00kiemon5ter avatar c00kiemon5ter commented on May 12, 2024 2

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.

elviskahoro avatar elviskahoro commented on May 12, 2024 1

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.

repsejnworb avatar repsejnworb commented on May 12, 2024 1

Shameless new comment πŸ‘ to this. Only gripe I've run into. Great software!

from warp.

ADTC avatar ADTC commented on May 12, 2024 1

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.

donaldguy avatar donaldguy commented on May 12, 2024

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.

elviskahoro avatar elviskahoro commented on May 12, 2024

from #291 @zheng

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.

elviskahoro avatar elviskahoro commented on May 12, 2024

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.

138308365-59cf645b-784d-4e98-83bd-09fb3d4ff95e

from warp.

elviskahoro avatar elviskahoro commented on May 12, 2024

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.

image

from warp.

elviskahoro avatar elviskahoro commented on May 12, 2024

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:

image

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.

elviskahoro avatar elviskahoro commented on May 12, 2024

from #291 @zheng

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.

elviskahoro avatar elviskahoro commented on May 12, 2024

from #291 @elviskahoro

Support (collapse all except current, specific ones, etc)

from warp.

wdanilo avatar wdanilo commented on May 12, 2024

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.

skaven81 avatar skaven81 commented on May 12, 2024

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.

jckw avatar jckw commented on May 12, 2024

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.

Current bounty reward

from warp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.