Git Product home page Git Product logo

obsidian-regex-replace's Introduction

release downloads

Obsidian Plugin - Regex Find/Replace

Provides a dialog to find and replace text in the currently opened note. In addition to Obsidians on-board find/repace function, this plugin provides options to

  • use regular expressions or just plain text
  • replace found occurances in the currently slected text or in the whole document

Desktop as well as mobile versions of Obsidian are supported.

Regex FindReplace Dialog

How to use

  • Run Regex Find/Replace: Find and Replace using regular expressions from the command palette or
  • Assign a shortcut key to this command and use it to open the dialog
  • The plugin will remember the last recent search/replace terms as well as the settings

How to install

From inside Obsidian

This plugin can be installed via the Community Plugins tab in the Obsidian Settings dialog:

  • Disable Safe Mode (to enable community plugins to be installed)
  • Browse the community plugins searching for "regex find/replace"
  • Install the Plugin
  • Enable the plugin after installation

Manual installation

The plugin can also be installed manually from the repository:

  • Create a new directory in your vaults plugins directory, e.g.
    .obsidian/plugins/obsidian-regex-replace

  • Head over to https://github.com/Gru80/obsidian-regex-replace/releases

  • From the latest release, download the files

    • main.js
    • manifest.json
    • styles.css

    to your newly created plugin directory

  • Launch Obsidian and open the Settings dialog

  • Disable Safe Mode in the Community Plugins tab (this enables community plugins to be enabled)

  • Enable the new plugin

Version History

1.0.0

Initial release

1.1.0

  • Case insensitive search can now be enabled in the settings panel of the plugin (regex flag /i)
  • Find-in-selection toggle switch is disabled if no text is selected in the note
  • Performance improvements and bug-fixes

1.2.0

  • Option to interpret \n in repleace field to insert line-break accordingly
  • Option to pre-fill the find-field with the selected word or phrase
  • Used regex-modifier flags are shown in the dialog

obsidian-regex-replace's People

Contributors

gru80 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.