Skip to content

Add option: zoxide query -t : print last_accessed#1039

Open
lengyijun wants to merge 1 commit intoajeetdsouza:mainfrom
lengyijun:1037
Open

Add option: zoxide query -t : print last_accessed#1039
lengyijun wants to merge 1 commit intoajeetdsouza:mainfrom
lengyijun:1037

Conversation

@lengyijun
Copy link
Copy Markdown

@lengyijun lengyijun commented Apr 11, 2025

With this pr, we can select recent dirs:

function zt
  set -l dest (zoxide query -l -t --exclude (pwd) | sort -k 1 -n -r | awk '{print $2}' | fzf )
  if test -z "$dest"
    # echo "The string is empty"
  else
    cd "$dest"
  end
end

Closes #1037

Comment thread src/cmd/cmd.rs Outdated
Comment thread src/cmd/query.rs Outdated
Copy link
Copy Markdown
Contributor

@azaleacolburn azaleacolburn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@lengyijun lengyijun force-pushed the 1037 branch 2 times, most recently from 244ff29 to 7f63efe Compare August 10, 2025 12:38
@iloveitaly
Copy link
Copy Markdown

@lengyijun is there anything else we need to get this merged? Would love this functionality.

@lengyijun lengyijun force-pushed the 1037 branch 2 times, most recently from 210fba3 to d37634f Compare August 24, 2025 01:17
@lengyijun
Copy link
Copy Markdown
Author

@ajeetdsouza Would you please take a review ?

Closes ajeetdsouza#1037

Co-authored-by: Azalea Colburn <62953415+azaleacolburn@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add option: zoxide query -t : print last_accessed

3 participants