GithubHelp home page GithubHelp logo

markerikson / joplin-plugin-vscode-style-search Goto Github PK

View Code? Open in Web Editor NEW
18.0 3.0 1.0 1.46 MB

A Joplin plugin that provides a search UI panel patterned after VS Code, with matches per note and per-match hit highlighting

TypeScript 60.27% JavaScript 13.86% CSS 25.88%

joplin-plugin-vscode-style-search's Introduction

VS-Code Style Search Plugin for Joplin

This Joplin plugin provides a note search panel that is patterned after the search panel in VS Code. Search for text, and matches will be shown grouped by file, one line per match, with the match text highlighted. Both plain text and regular expression syntax should work.

You can search for text just in note titles with the "Search in titles only" checkbox. (This only returns exact title prefix matches by default - you may need to use regular expression syntax like note* to search for partial title matches.)

Toggle the panel with CTRL-SHIFT-F.

Screenshot of the plugin

Status

This is a brand-new plugin, and there's a lot of possible search options that could be added. Some ideas:

  • Scroll to a specific match line when clicked
  • Toggle case sensitivity
  • Limit searches to specific note folders, or ignore folders
  • Pagination
  • Switching to a view that shows each match with multiple lines of context above and below (similar to VS Code's "Show in Editor" popout panel)

I may not hae much time to work on new features myself, but happy to accept PRs!

joplin-plugin-vscode-style-search's People

Contributors

markerikson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

rohitluthra19

joplin-plugin-vscode-style-search's Issues

Moral support for developing

It is not an issue, but a post for moral support for developing.
This plugin is a nice start. It would be great if your plugin could highlight the results in the notes.

Feature Requests

Collected from the initial search thread:

https://discourse.joplinapp.org/t/search-functionality-in-joplin/35787/74?u=acemarke

  • Can the search results be displayed in a notebook structure?
  • Can the search results display the path where the notes are located?
  • Can the search scope include the path where the note is located, in addition to the note title and body text?

https://discourse.joplinapp.org/t/search-functionality-in-joplin/35787/77?u=acemarke

  • Can the search bar be focused upon showing the panel?
  • If the above is too invasive, can a keyboard shortcut be added to focus the search bar?
  • Can a plugin settings page option be added to preserve search results when hiding the panel?
  • Can clicking a note's result line scroll to where it's located in the note, like how HTML anchors work?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.