GithubHelp home page GithubHelp logo

bgrishin / obsidian-transliteration-search Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tadashi-aikawa/obsidian-another-quick-switcher

1.0 0.0 0.0 42.31 MB

A plugin to search files with transliteration

License: MIT License

Shell 0.04% JavaScript 0.91% TypeScript 89.63% CSS 9.42%

obsidian-transliteration-search's Introduction

Obsidian Another Quick Switcher Plugin

release Tests downloads

This is an Obsidian plugin which is another choice of Quick switcher.

  • It can create custom search commands (Custom searches)
  • It allows you to customize the hotkeys in the quick switcher to your preference
  • It can search backlinks and move them without leaving from a keyboard (Backlink search)
  • It can move a file to another folder (Move file to another folder)
  • It can search regardless of the appearance order of tokens
  • It does not search very fuzzy (e.g. searching for 201 doesn't match 2.01)
  • Search with different keyboard layouts (like transliteration or forgot-to-switch-layout), supports layouts usually used in countries: 🇺🇦,🇵🇱,🇩🇪,🇲🇩,🇷🇴,🇫🇷,🇹🇷,🇵🇹,🇪🇸,🇮🇹. For users from Ukraine, this will be a good update.
  • It can search to consider prefix emoji
  • It shows file names and directory names separately

⏬ Install

You can download from Community plugins in Obsidian settings.

⌨️Features

1. Custom searches

Demo

Custom searches enables you to create your original search commands.

Demo

Search target

Name Description
markdown All markdown files
backlink Markdown files in backlinks on the current file
link Markdown files in outgoing links on the current file

Sort priorities

You can use the following names as a Sort priorities.

Name Description Since
Perfect word match A query matches perfectly with a word in the file name 6.0.0
Prefix name match The file name or alias starts with a query 6.0.0
Name match The file name or alias includes a query 6.0.0
Tag match The tag name in the file includes a query 6.0.0
Header match The header name in the file includes a query 6.0.0
Link match The internal link name in the file includes a query 6.0.0
Length Length of the file name or alias 6.0.0
Last opened The time the file opened last 6.0.0
Last modified The time the file modified last 6.0.0
Star The file has a star 6.0.0
Alphabetical File name or alias order by alphabetically ascend 6.2.0
Alphabetical reverse File name or alias order by alphabetically descend 7.0.0
Created latest File creation date from the latest to the earliest 7.0.0
Created earliest File creation date from the earliest to the latest 7.0.0
(Tags split by comma) The file has specific tags 7.0.0
(Extensions split by comma) The file has specific extensions 8.3.0

Warning Please don't forget to click the Save button before you close Obsidian. Otherwise, the settings will never restore when you open Obsidian next time. Demo

Note Examples of (Tags spit by comma) are #hoge, #hoge,#huga, and so on.

Note Examples of (Extensions spit by comma) are .md, .md,.canvas, and so on.

Preset search commands

Recent search recent search
File name search file name search
Landmark search landmark search
Star search star search
Backlink search backlink search

Note

Queries enclosed in double quotes are searched as is
  • "ho ge" only matches ho ge not hoge
  • ho ge matches both ho ge and hoge
A minus sign at the beginning excludes the matched candidates

Ex: If there are three files.

  • hoge.md
  • hoge
  • mdhoge

hoge -md suggests only hoge.

2. Header floating search in file / Header search in file

Demo

  • Show all headers even after filtering to retain file structures in the brain
  • Jump to the first hit suggestion automatically and move next/previous by Tab/Shift+Tab as default
  • Queries enclosed in double quotes are searched as is
    • "ho ge" only matches ho ge not hoge
    • ho ge matches both ho ge and hoge

3. Grep

This feature requires ripgrep and set the executable command to "Ripgrep command" option.

Demo

Default hotkeys

  • TAB: Search (not realtime)
  • Ctrl+,: preview

Note

  • Input regards as a regex pattern

4. Customizable hotkeys

Detailed hotkeys customization is available for each dialog.

Demo

5. Show backlinks from the dialog

You can show the backlinks about the suggestion in the dialog. (Default hotkey is Mod h)

It can show backlinks from not only existing notes but also phantom(not existing) notes.

Demo

6. Navigate outgoing/backlinks without leaving the dialog

You can navigate outgoing/backlinks without leaving the dialog by using the "show links", "show backlinks", "navigate forward", and "navigate back" commands.

Demo

7. Preview

You can preview the file without closing the dialog. It shows a floating view that doesn't distract the contents. Additionally, it makes the editor state before opening the dialog after previewing files and closing the dialog.

2023-02-05_16h05_11.mp4

For users who use earlier than v8.0.0

Please read a "🔥 Breaking changes" section in the Release note.

For users who use earlier than v7.0.0

Please read a "🔥 Breaking changes" section in the Release note.

For users who use earlier than v6.0.0

Please read a "🔥 Breaking changes" section in the Release note.

📱 Mobile support

It both supports desktop and mobile.

Feature requests / Bugs

Please create a new issue.


🖥️ For developers / contributors

Development

Task is required.

task init
task dev

Release

# Stable
task release VERSION=1.2.3

# Beta
task release VERSION=1.2.3-beta1

obsidian-transliteration-search's People

Contributors

tadashi-aikawa avatar bgrishin avatar kometenstaub avatar hakonhagland avatar ooker777 avatar esm7 avatar

Stargazers

Vadim Babaiev 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.