Skip to content
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

Idea: make a web history search just for the current website #755

Open
njoppi2 opened this issue Jun 2, 2022 · 2 comments
Open

Idea: make a web history search just for the current website #755

njoppi2 opened this issue Jun 2, 2022 · 2 comments

Comments

@njoppi2
Copy link

njoppi2 commented Jun 2, 2022

I use notion.so a lot, and I'm constantly changing pages between, for example: notion.so/Professional, notion.so/Personal, notion.so/Objectives, notion.so/Exercises. It would be really cool if I could make a search for previously accessed notion pages, so that if I search for "personal", it takes me to notion.so/Personal.

@b-coimbra
Copy link

Maybe we could reuse the existing history search command ("I") and filter out the results by the active tab's domain (notion.so in this case)?

I might implement this in my own vimch fork, I'm just not sure if I should make this just a command that can be bound to any key, or a setting toggle such as set historybydomain, but I think the former makes more sense.

@b-coimbra
Copy link

Alternatively you could also create a site-specific configuration and filter the history results by yourself:

site '*://notion.so/*.' {
  filterHistoryByDomain() -> {{
    "" ...
  }}
  map I :call filterHistoryByDomain<CR>
}

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

No branches or pull requests

2 participants