question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Highlightr not working in +Obsidian v.15.8 (last update) + other issues

See original GitHub issue

Hey Chetachi! Just leaving some issues on the plugins here, so you can take a look later, take your time to deal with your personal problems, no need to hurry! First of all, congrats on the obsidian plugins, very nice job you did, I can see that you putted much love and effort in every single one of them. Thank you a lot.

Alright, so now the issues:

  • Highlightr stopped working in Obsidian v.15.6 (or superior), even the shortcuts.
    • 7/22/22 - Updated Obsidian to v.15.8, when using the “Ctrl+P” shortcut it works, but the Highlightr pop up don’t.
  • An old problem with Highlightr, that I believe you already know, is the space after the marked text. (#39)
  • A small detail, that would be nice to analyze, is that cMenu is taking a lot to load.
  • Snippets plugin didn’t stop, but is having some basic bugs in its structure (not making possible to create new CSS Snippets through the plugin and the “hovering” when using the mouse is also bugged).

As I said, take your time alright? That’s it, best of luck 🫂


For those having the same problem, in the coments there is a ton of really good solutions. I personally used (not so aesthetic, but is pretty useful) "Wrap with shortcuts plugin $^1$ ", you can configure hotkeys for each highlight color/font color. It won’t have rounded highlights, but it can be a good option until Highlightr plugin comes back.

  • The code to highlight in obsidian is: <font style="background-color:#FFBD59A6"> text here </font>
  • The code to make colorful text is: <font style="color:#FFBD59"> text here </font>
  • The letters and numbers after the “#” are the HEX code that indicate a certain color, the “A6” indicate the transparency. You can find good pallete colors in: https://coolors.co/palettes

$^1$ copy and paste on browser: obsidian://show-plugin?id=obsidian-wrap-with-shortcuts

Peace ✌🏻

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:27
  • Comments:52 (1 by maintainers)

github_iconTop GitHub Comments

47reactions
remerlecommented, Aug 2, 2022

For a workaround for the broken context menu (for the Desktop app), go to your .obsidian\plugins folder or Settings -> Community Plugins -> Installed Plugins and click the folder icon: image

Go into the highlightr-plugin folder and open main.js. Search for menu.showAtPosition and replace the following:

        menu.showAtPosition({
            x: coords.right + 25,
            y: coords.top + 20,
        });

with

        const orig=menu.__proto__.sort; // Save the original function
        menu.__proto__.sort = function() {}; // Replace the sort function with a no-op function
        menu.showAtPosition({
            x: coords.right + 25,
            y: coords.top + 20,
        });
       menu.__proto__.sort=orig; // Reset the sort function

Basically, the menu.sort function relies on menu items which this plugin just ignores. So, when it hits menu.sort, the dropdown is rebuilt and the dom (which this plugin manipulates) is reset. This change just makes the sort function a no-op.

13reactions
chetachiezikeuzorcommented, Aug 31, 2022

Hello friend @gabrielcarus ! Thank you for your notes!

  • Highlightr stopped working in Obsidian v.15.6 (or superior), even the shortcuts.

    • 7/22/22 - Updated Obsidian to v.15.8, when using the “Ctrl+P” shortcut it works, but the Highlightr pop up don’t.

I just released an update for Highlightr that should be much more compatible with Obsidian API. Please let me know if there are any issues with it!

This should be fixed in the update, though I’m still working on a function that is more intelligent.

  • A small detail, that would be nice to analyze, is that cMenu is taking a lot to load.

I’ll have to completely redo cMenu at this point. Hoping to get this done soon.

  • Snippets plugin didn’t stop, but is having some basic bugs in its structure (not making possible to create new CSS Snippets through the plugin and the “hovering” when using the mouse is also bugged).

I’ve also released an update for MySnippets. You should be able to create new snippets now.

And thank you everyone for being so patient 🙏🏽!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Highlightr Plugin not workin as expected - Obsidian Forum
I am using the latest version of Obsidian and I do want to use the Highlightr-Plugin, which I had been using before.
Read more >
Obsidian - How To Highlight Text - YouTube
THIS PLUGIN IS CURRENTLY BROKEN AS OF OBSIDIAN v. 15.8 - SEE LINK FOR ... ://github.com/chetachiezikeuzor/Highlightr-Plugin/ issues /42In th...
Read more >
Yellowstone National Park Summer 2018 Visitor Use Surveys
1.10 ANOVA test of Perceived Problems by Site Type:. ... 2.4 Other Potential Explorations and Analyses with Current GPS Data .
Read more >
FIRST LOOK: 2023 Jeep® Grand Wagoneer/Wagoneer Lineup!
The all-new twin-turbocharged 3.0-liter Hurricane S.O. inline-six-cylinder engine with Engine Start/Stop offers customers 420 horsepower and 468 ...
Read more >
2020 Biennial Energy Report - Oregon.gov
only coal power plant and new actions to tackle climate change. ... A Venue for Problem-Solving Oregon's Energy Challenges.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found