Coder Social home page Coder Social logo

dive2pro / obsidian-omnisearch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from scambier/obsidian-omnisearch

0.0 0.0 0.0 2.92 MB

A search engine that "just works" for Obsidian

License: GNU Affero General Public License v3.0

JavaScript 18.65% CSS 0.67% TypeScript 61.80% Svelte 18.89%

obsidian-omnisearch's Introduction

Omnisearch for Obsidian

GitHub release (latest by date including pre-releases) GitHub release (latest by date including pre-releases) Active Development

Omnisearch is a search engine that "just works". Type what you're looking for, and it will instantly show you the most relevant results.

Under the hood, it uses the excellent MiniSearch library.

Features

  • Keyboard-centric, you never have to use your mouse
  • Automatic document scoring using the BM25 algorithm
    • The relevance of a document against a query depends on the number of times the query terms appear in the document, its filename, and its headings
  • Instant search results, with highlighting
  • Resistance to typos
  • In-file search to quickly skim multiple results in a single note
  • Search filters: expressions in quotes and exclusions
  • Respects Obsidian's "Excluded Files" list (results are downranked, not hidden)

Installation

You can check the CHANGELOG for more information on the different versions.

Usage

Omnisearch can be used within 2 different contexts:

Vault Search

Omnisearch's core feature, accessible with the Command Palette "Omnisearch: Vault search". This modal searches through your vault and returns the most relevant notes first. The notes that contain the query terms in their filename or headings are weighted higher than the others.

If you need to list all the matches of a single note, you can do so by using alt+enter to open the In-File Search.

In-File Search

Also accessible through the command palette "Omnisearch: In-file search". This modal searches through the active note's content and lists the results.

Customization

There are several CSS classes you can use to customize the appearance of Omnisearch.

.omnisearch-modal
.omnisearch-result
.omnisearch-result__title
.omnisearch-result__counter
.omnisearch-result__body
.omnisearch-highlight

For example, if you'd like the usual yellow highlight on search matches, you can add this code inside a CSS snippet file:

.omnisearch-highlight {
    color: var(--text-normal);
    background-color: var(--text-highlight-bg);
}

LICENSE

Omnisearch is licensed under GPL-3.

obsidian-omnisearch's People

Contributors

scambier avatar dive2pro avatar aidenlx avatar

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.