feat(hledger-ui): add helix as a supported editor

This commit is contained in:
amano.kenji 2024-10-15 06:52:42 +00:00 committed by Simon Michael
parent 9d1ba5c588
commit f6c98ec1d6

View File

@ -120,6 +120,11 @@ editFileAtPositionCommand mpos f = do
Nothing -> [f']
Just ('-' : _, _) -> ["+", f']
Just (l, _) -> ['+' : l, f']
-- arch linux creates a symlink to /usr/lib/helix/hx at /usr/bin/helix
e | e `elem` ["hx", "helix"] -> case mpos' of
Nothing -> [f']
Just ('-' : _, _) -> [f']
Just (l, _) -> ['+' : l, f']
_ -> [f']
return $ unwords $ cmd:args