10000 Avoid redundantly loading previews for search/find by neeshy · Pull Request #569 · gokcehan/lf · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Avoid redundantly loading previews for search/find #569

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 29, 2021
Merged

Avoid redundantly loading previews for search/find #569

merged 2 commits into from
Jan 29, 2021

Conversation

neeshy
Copy link
Contributor
@neeshy neeshy commented Jan 29, 2021

This is a followup to #562 (comment)
This PR avoids redundantly invoking the previewer script upon using find or searching (both normal and incremental). Find and search methods now return the result of nav.up/nav.down, and in eval.go I've inserted checks corresponding checks. In some locations I had to manually check if the current dir.ind differs from its previous value.

@gokcehan
Copy link
Owner

@neeshy Looks good to me, thanks.

@gokcehan gokcehan merged commit 1163efb into gokcehan:master Jan 29, 2021
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.

2 participants
0