Skip to content

Commit

Permalink
Add age extension to text editor integrations
Browse files Browse the repository at this point in the history
  • Loading branch information
clach04 committed Nov 26, 2024
1 parent a0da288 commit 0d34648
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion integrations/scite/pt_scite.lua
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ local function determine_encrypted_file_extensions()
-- avoids process spawning unless an actual encrypted file is loaded
return {
'gz', 'Z', -- no password needed, no encryption
'chi', 'chs', 'aes.zip', 'aes256.zip', 'aeszip', 'old.zip', 'aes256stored.zip', 'oldstored.zip', 'aes256lzma.zip', 'aes256bzip2.zip', 'vimcrypt', 'vimcrypt1', 'vimcrypt2', 'vimcrypt3'
'chi', 'chs',
'age',
'aes.zip', 'aes256.zip', 'aeszip', 'old.zip', 'aes256stored.zip', 'oldstored.zip', 'aes256lzma.zip', 'aes256bzip2.zip',
'vimcrypt', 'vimcrypt1', 'vimcrypt2', 'vimcrypt3'
}
end
local file_extensions = {}
Expand Down
8 changes: 4 additions & 4 deletions integrations/vim/pt.vim
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,9 @@ endfunction


" potentially filter aes zip to *aeszip
autocmd BufReadPre,FileReadPre *.chi,*.chs,*.asc,*.gpg,*zip call s:PurenTonboReadPre()
autocmd BufReadPost,FileReadPost *.chi,*.chs,*.asc,*.gpg,*zip call s:PurenTonboReadPost()
autocmd BufWritePre,FileWritePre *.chi,*.chs,*.asc,*.gpg,*zip call s:PurenTonboWritePre()
autocmd BufWritePost,FileWritePost *.chi,*.chs,*.asc,*.gpg,*zip call s:PurenTonboWritePost()
autocmd BufReadPre,FileReadPre *.chi,*.chs,*.age,*.asc,*.gpg,*zip call s:PurenTonboReadPre()
autocmd BufReadPost,FileReadPost *.chi,*.chs,*.age,*.asc,*.gpg,*zip call s:PurenTonboReadPost()
autocmd BufWritePre,FileWritePre *.chi,*.chs,*.age,*.asc,*.gpg,*zip call s:PurenTonboWritePre()
autocmd BufWritePost,FileWritePost *.chi,*.chs,*.age,*.asc,*.gpg,*zip call s:PurenTonboWritePost()

augroup END

0 comments on commit 0d34648

Please sign in to comment.