Right now when reading a file and there's a UnicodeDecodeError it simply disallows people from opening it
def get_lines(self, file: str | Path) -> list[str]:
try:
with open(file) as f:
return f.readlines()
except UnicodeDecodeError as e:
return ["THIS FILE FORMAT IS NOT SUPPORTED BY THE EDITOR"]
file_selector.py
Right now when reading a file and there's a
UnicodeDecodeErrorit simply disallows people from opening itfile_selector.py