Code Monkey home page Code Monkey logo

syplugin-document-search's Introduction

中文

Document-based Search

Features

  • Search based on documents
  • Ability to set the type of search blocks (isolated from official search types, without affecting each other.)
  • Support filtering out less frequently used notebooks
  • Support for mobile use (requires Dock bar to be enabled)

Functions

Click Result Positioning

Click on a search result block to position within the document. Works well in long tables or code blocks.

Image

Double-click Search Result to Open Document Tab

Double-click a search result to open the document and jump to the specified location. If it does not open after double-clicking, you can adjust the "Double-click Time Threshold" in the "Other" settings.

Single Document Search Result Sorting

  • Trigger method:
    • Right-click on document on desktop
    • Long press on document on mobile

Image

Support for Arrow Key Selection

When the cursor is in the input box, you can use the up and down arrow keys to select search results, and press Enter to open the result tab.

Code Block, Database Highlighting

After clicking to open a document in the tab search preview area or Dock bar, code block, database keyword highlighting and positioning are supported! (Official search currently does not support) If the highlighting for code block, database fails, you can adjust the "Preview Refresh Highlight Delay" in the "Other" settings.

Dock Search Supports Searching in Current Document

Alt text

Closing is for global search, opening is for searching in the current document; when opened, it forces the use of original order. If you want to switch sorting, you can right-click on the document to do so.

In fact, it reads the document where the cursor is last focused. If the desired document is not located, you can switch tabs or reopen the document.

Flat Document Tree

Features

  • All operations on documents supported by the official document tree are also supported here.
    • Note: Operations such as renaming, deleting, and creating documents require manual refreshing to display the latest data.
  • Support for mobile use (requires Dock bar to be enabled)

Functions

  • Supports sorting by modification time, creation time, and reference count.
  • Document name search supported in the search box.

Hide Dock

You can hide unused Docks in the plugin's Dock Settings. Note: The hiding will be synchronized on mobile.

Default Configuration

Document-based Search

  • Default block types for queries:
    • Document, Heading, Code Block, Math Block, Table Block, Paragraph Block, HTML Block, Database, Audio, Video
  • Default matching attributes for blocks: Name, Alias, Memo
  • Default sorting:
    • Document sorting: Descending by relevance
    • Content block sorting: Type
  • Documents per page: 10
  • Default maximum expansion count: 100

Flat Document Tree

  • Default sorting: Descending by modification time
  • Display 30 items

keyboard shortcuts

  • Currently supported keyboard shortcuts: Open document search tab, Document search Dock, Flat document tree Dock.
  • All can be found and modified in "Settings" -> "Keymap" -> "document dearch" in SiYuan.

Changelog

Changelog(Chinese)

syplugin-document-search's People

Contributors

misuzu2027 avatar

Stargazers

yangmingyaun avatar  avatar

Watchers

 avatar

syplugin-document-search's Issues

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.