Coder Social home page Coder Social logo

quorafind / obsidian-no-dupe-leaves Goto Github PK

View Code? Open in Web Editor NEW

This project forked from scambier/obsidian-no-dupe-leaves

0.0 0.0 0.0 754 KB

Automatically switch the focus to open notes instead of reopening them

License: GNU Affero General Public License v3.0

JavaScript 66.42% TypeScript 33.58%

obsidian-no-dupe-leaves's Introduction

Obsidian "No Dupe Leaves" Plugin

Custom badge

Automatically switch the focus to open notes instead of reopening them

The discussion that led to this plugin's creation.

Obsidian's default behavior is to replace the old note A with the new note B when you open it, even if B is already open in another pane, leading you to have 2 instances of B.

This plugin will avoid opening duplicates when possible, while still respecting all "force open in a new pane" instructions (e.g. middle click on a link).


⚠️ Word of warning ⚠️ This plugin modifies the default behavior of Obsidian.

Internally, it overwrites the public function openLinkText(), which is called when you click on a link in a note. This also affects other plugins that use this function - like Omnisearch -, but does not work on core features like the File Explorer.

Add your input the the original feature request to tell Obsidian that you'd like this behavior as the default :)


image

Contributing

As this is a quick hack over the default behavior, no feature request will be considered. You can submit PRs for bugfixes.

obsidian-no-dupe-leaves's People

Contributors

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