This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pathlib import Path | |
import re, sys, os | |
def clean_note_lines(title: str, lines: list[str]): | |
""" | |
Remove any lines matching title | |
""" | |
nn = re.compile(r"[^a-zA-Z0-9]") | |
def norm(s): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use tauri_hotkey as hotkey; // Discontinued, but v0.1.2 is working fine as of 2021-10-14 | |
use std::io::{stdin, Read}; | |
fn main() { | |
let spec = "ctrl+alt+r"; | |
let mut hk = hotkey::HotkeyManager::new(); | |
let key = hotkey::parse_hotkey(&spec).unwrap(); | |
println!("Listening for {}. Enter to exit", &spec); | |
hk.register(key, move || println!("{} pressed!", &spec)).unwrap(); | |
stdin().read(&mut [0]).unwrap(); // wait for "enter" |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer