Giter Site home page Giter Site logo

can't clear history about warp HOT 6 OPEN

 avatar commented on September 25, 2024 1
can't clear history

from warp.

Comments (6)

vorporeal avatar vorporeal commented on September 25, 2024 1

We don't store history in the cloud. Commands you run are never sent to Warp's servers unless you use a feature like block sharing or Warp AI, where that is an explicit part of the feature.

Display of the last few blocks is part of our "session restoration" feature - this can be turned off in Settings > General > "Restore windows, tabs, and panes on startup". The clear command in a shell is typically implemented by pushing everything into scrollback but not actually "clearing" any of it from the terminal buffer. In Warp, "Clear Blocks" (default keybinding cmd+k) is the equivalent of iTerm's "Clear Buffer" (same cmd+k keybinding).

Additionally, Warp stores some command history in its (local-only, never sent to the cloud) sqlite database; on macOS, this can be found at $HOME/Library/Application Support/dev.warp.Warp-Stable/warp.sqlite. Feel free to delete that and see if it addresses the issue. (Your settings are stored elsewhere.)

Warp should read your .zsh_history file at startup and combine it with any history it has saved. If this is not happening (or if you delete the sqlite database and we don't properly import history from your .zsh_history file), please let us know - that's a very bad bug and we'd want to address it immediately.

I agree that we should provide an easy way, within the app, to clear history - I'll file an issue internally to track adding that functionality.

from warp.

acarl005 avatar acarl005 commented on September 25, 2024

Hi. @fsefsrefgwgfageggreg,
History will remain in memory for the session. It should be cleared after restarting Warp

from warp.

 avatar commented on September 25, 2024

That doesn't work. I typed some commands, rm'ed the history, quit and reopened warp, history is still there. A menu option or a "delete history on quit" in the settings would be great.

from warp.

 avatar commented on September 25, 2024

even using rm .zsh_history and clear and then relaunching warp restores the screen and the history. So something is definitely cached/saved elsewhere and is being restored when relaunching app. Feels like it should be easier to just clear history. That's how it works in every terminal I've used before. You guys can add goofy themes and tabs and AI bullshit but when you type basic commands like rm and clear they still need to work as expected.

from warp.

pelly-ryu avatar pelly-ryu commented on September 25, 2024

I can't remove the history either.

fyi, my context:
macos. after the last update(v0.2024.04.30.08.02.stable_01),
its command history isn't updated anymore and shows the same old history (.zsh_history is updated & i can see them in Terminal)

i thought Warp's history was somehow broken, so wanted to clear them, but couldn't find the way


the issue has gone after update(v0.2024.05.07.08.02.stable_02) without any action by me

from warp.

FrenchBen avatar FrenchBen commented on September 25, 2024

How is Warp splitting the history across .zsh_history and warp.sqlite? There's a high level of inconsistency of history when using split-pane, and the ability to recall history from up/down keyboard keys to CTRL+R

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.