<commit_before>" vim: set tw=100 :

let b:pad_modified = 0
au! BufWritePre <buffer> let b:pad_modified = eval(&modified)

if has("python") || has("python3")
    if has("python")
        let b:python = "python"
    else
        let b:python = "python3"
    endif
    exe b:python . " import pad.pad"
    au! BufLeave <buffer> exe b:python . " pad.pad.update()"
    noremap <silent> <buffer> <localleader>+m :exe b:python . " pad.pad.add_modeline()"<cr>
    noremap <silent> <buffer> <localleader>+f :exe b:python . " pad.pad.move_to_folder()"<cr>
    noremap <silent> <buffer> <localleader>-f :exe b:python . " pad.pad.move_to_savedir()"<cr>
    noremap <silent> <buffer> <localleader>+a :exe b:python . " pad.pad.archive()"<cr>
    noremap <silent> <buffer> <localleader>-a :exe b:python . " pad.pad.unarchive()"<cr>
    noremap <silent> <buffer> <localleader>dd :exe b:python . " pad.pad.delete()"<cr>
endif<commit_msg>bugfix: renaming from title if note opened in full window<commit_after>" vim: set tw=100 :

let b:pad_modified = 0
au! BufWritePre <buffer> let b:pad_modified = eval(&modified)

if has("python") || has("python3")
    if has("python")
        let b:python = "python"
    else
        let b:python = "python3"
    endif
    exe b:python . " import pad.pad"
    au! BufLeave,BufUnload <buffer> exe b:python . " pad.pad.update()"
    noremap <silent> <buffer> <localleader>+m :exe b:python . " pad.pad.add_modeline()"<cr>
    noremap <silent> <buffer> <localleader>+f :exe b:python . " pad.pad.move_to_folder()"<cr>
    noremap <silent> <buffer> <localleader>-f :exe b:python . " pad.pad.move_to_savedir()"<cr>
    noremap <silent> <buffer> <localleader>+a :exe b:python . " pad.pad.archive()"<cr>
    noremap <silent> <buffer> <localleader>-a :exe b:python . " pad.pad.unarchive()"<cr>
    noremap <silent> <buffer> <localleader>dd :exe b:python . " pad.pad.delete()"<cr>
endif
{'fraction_non_alphanumeric': 0.17212249208025343, 'fraction_numerical': 0.006335797254487857, 'mean_word_length': 3.9348958333333335, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 55, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7431558', 'n_tokens_mistral': 761, 'n_tokens_neox': 692, 'n_words': 166}