Skip to content

Conversation

@Revathyvenugopal162
Copy link
Contributor

@Revathyvenugopal162 Revathyvenugopal162 commented Nov 11, 2024

fixes #581

Enhancements to Search Functionality:

  1. "Enter" Key Navigation to First Result:

    • Pressing "Enter" now directly navigates to the first search result.
    • If no search results are found, pressing "Enter" redirects the user to a PyData search interface.
  2. Local HTML File Search for Development:

    • In local environments, the search function now works seamlessly with local HTML files, allowing developers to use PyData's search capabilities locally.

@Revathyvenugopal162 Revathyvenugopal162 added this to the v1.3 milestone Nov 11, 2024
@github-actions github-actions bot added ui/ux Related with UI/UX design js Requires or modifies JavaScript code css Requires or modifies cascading style sheets fix Pull requests related to resolving problems or errors labels Nov 11, 2024
@Revathyvenugopal162 Revathyvenugopal162 marked this pull request as ready for review November 12, 2024 10:17
@Revathyvenugopal162 Revathyvenugopal162 requested a review from a team as a code owner November 12, 2024 10:17
Co-authored-by: Jorge Martínez <[email protected]>
function initializeFuse(data, options) {
fuse = new Fuse(data, options);
// add env variable "FUSE_ACTIVE" to indicate that the search is ready
document.documentElement.setAttribute("data-fuse_active", "true");
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

@jorgepiloto jorgepiloto left a comment

Choose a reason for hiding this comment

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

Thanks for adding this, @Revathyvenugopal162.

@Revathyvenugopal162
Copy link
Contributor Author

Revathyvenugopal162 commented Nov 13, 2024

Thank you for reviewing @jorgepiloto , merging and performing a patch release

@Revathyvenugopal162 Revathyvenugopal162 merged commit 1544c84 into main Nov 13, 2024
21 checks passed
@Revathyvenugopal162 Revathyvenugopal162 deleted the fix/search-enter branch November 13, 2024 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

css Requires or modifies cascading style sheets fix Pull requests related to resolving problems or errors js Requires or modifies JavaScript code ui/ux Related with UI/UX design

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Searching doesn't work when opening HTML docs directly as files

4 participants