Open aminya opened 3 months ago
Hi @aminya sorry to hear about this. Are you able to confirm you don't have any history settings in your rc files to limit the history? Also, as a possible workaround you should be able run the history
command to see older history.
To anyone else facing this issue, please add a 👍 to the original post at the top or comment with your details, and subscribe if you'd like to be notified.
Hi @aminya sorry to hear about this. Are you able to confirm you don't have any history settings in your rc files to limit the history? Also, as a possible workaround you should be able run the
history
command to see older history.
Other than having mcfly installed, I don't see anything changing the history settings
# Add mcfly to bash
eval "$(mcfly init bash)"
alias ms="mcfly search"
Please try disabling it just for Warp to see if that helps with the history length. Add the following conditional around the mcfly lines.
if [[ $TERM_PROGRAM != "WarpTerminal" ]]; then
eval "$(mcfly init bash)"
alias ms="mcfly search"
fi
Thanks, I tried that, but the history search didn't find my old commands.
Here's the relevant parts of my rc file just in case:
# tabtab source for packages
# uninstall by removing these lines
[ -f ~/.config/tabtab/bash/__tabtab.bash ] && . ~/.config/tabtab/bash/__tabtab.bash || true
# Add mcfly to bash
if [[ $TERM_PROGRAM != "WarpTerminal" ]]; then
eval "$(mcfly init bash)"
alias ms="mcfly search"
fi
source "$HOME/.config/broot/launcher/bash/br"
# Add starship to bash
eval "$(starship init bash)"
eval "$(zoxide init bash)"
alias cd=z
Same is happening to me.
Also, it seems that Warp is trying to do some cleaver "context-aware" command history search based on the current directory and this doesn't always work. I'll try to search for a command I ran a few weeks ago and the search will come back empty, but if I change directories, it will find the command with the exact same search term.
Also also, sometimes I try to search for a string in the middle of the command and the search will prioritise all commands which start with that string instead of sorting by recency.
Can we get an option to disable all those "smart" search functions, please? Sometimes all I want to do is literally get the last command that I typed which has a specific word in it and it becomes a struggle.
Any solutions? I have enabled mcfly back because Warp's command history just doesn't work. I'd suggest against the comment here
This is also happening on MacOS, version: v0.2024.07.16.08.02.stable_03
. It has been present for the last 4 or 5 weeks.
I have written a tool that fixes the Warp history issue. The issue is that Warp only relies on ~/.bash_history
for command searching. Using this tool, you can insert all the commands from Warp or Mcfly into ~/.bash_history
so warp correctly searches.
Dupe Check
Describe the bug
I have noticed that Warp forgets the commands I type after a few days. For example, I can only browse for up to two days, and refining the search doesn't bring up the old commands.
If I open the Sqlite database at
/home/aminya/.local/state/warp-terminal/warp.sqlite
, I can see my commands that are as old as 2 months, but they don't show up in the history searchThis is unfortunate since Warp takes over Mcfly, so I can't use that with CTRL+R, and the only workaround to access my older commands is using the
mcfly
executable directly.To reproduce
Try to search a command you ran a long time ago.
Expected behavior
Having access to all the command history
Operating system
Linux
Operating system and version
KDE Neon 6 - Ubuntu 22.04
Shell Version
5.1.16(1)
Current Warp version
v0.2024.05.21.16.09.stable_02
Regression
No, this bug or issue has existed throughout my experience using Warp
Recent working Warp date
No response
Additional context
My settings:
Does this block you from using Warp daily?
Yes
Is this a Warp specific issue? (i.e. does it happen in Terminal, iTerm, Kitty, etc.)
Yes, this I confirmed this only happens in Warp, not other terminals.
Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e
Ignore
Also similar to #2627