After running the :substitute command on a note I still have yellow boxes around my matches. I tried using esc and :set invhlsearch but no . Which is basically my way of saying I’m deeply ashamed to have to ask! In my defense, I checked the forum search and the plugin GH page first.
Any ideas?
→
Environment
Platform: MacOS
Platform version: 12.4 Mont
App Version: 5.5.0 (5.5.0)
How to reproduce
use :s/xxx/yyy
yellow boxes appear on all notes with the search term
You can define a custom command that invokes the nohl ex command like this in your init.js:
const Vim = require('codemirror').Vim
inkdrop.commands.add(
document.body,
'custom:nohl',
(event) => {
const cm = inkdrop.getActiveEditor().cm
vim.exCommandDispatcher.processCommand(cm, 'nohl')
}
)
then, bind this command to any key combination.
If you’d like to bind it to esc in the editor (selector: '.CodeMirror textarea'), you have to invoke editor:single-selection at the end of your command.