rohankishore / Aura-Text

Aura Text is a versatile and powerful text editor powered by QScintilla that provides all the necessary tools for developers. It is build using PyQt6 and Python.
GNU General Public License v3.0
285 stars 23 forks source link

[Feature Request] Default app support #23

Closed nfoert closed 1 year ago

nfoert commented 1 year ago

You should add the ability to set Aura Text as the default app for files. I actually wanted to see how this worked myself, so I did some experimentation. It turns out that the file to open is in sys.argv like this: ['C:\\path\\to\\executable.exe', 'C:\\path\\to\\file.py'] (On Windows) So, the location of this file would be sys.argv[1]

Thanks for making Aura Text!

rohankishore commented 1 year ago

Hi nfoert. Can you elaborate more on the issue please? If you are comfortable, then we can talk on Discord, or on Instagram. Both of the social links are there in my profile bio. If you aren't comfortable, then we can just continue the discussion here.

Thanks for showing interest and using Aura Text.

nfoert commented 1 year ago

Sorry, I wasn't more clear. This isn't a bug report, It's a feature request. I meant that you should add the ability for Aura Text to open files on a double-click if you set Aura Text as your default text editor in windows.

rohankishore commented 1 year ago

Yeah will surely try to integrate default behaviour more. As for now, you can:

right click on a file --> Open with --> Choose another app --> Aura Text --> Click on 'Always'

The selected file format will now open default in Aura Text.

rohankishore commented 1 year ago

Alternate but little more difficult way

image

rohankishore commented 1 year ago

And yeah i've edited the label to "Feature Requests".

nfoert commented 1 year ago

Thank you. I tried both ways and they both cause Aura Text to throw a tkinter exception. bitmap "icon.ico" not defined Because of this I figured it was not implemented.

Here's the full exception: Traceback (most recent call last): File "Aura Text.py", line 373, in <module> File "Aura Text.py", line 370, in main File "Aura Text.py", line 43, in __init__ File "tkinter\__init__.py", line 2109, in wm_iconbitmap _tkinter.TclError: bitmap "icon.ico" not defined

I'm using Aura Text 1.6

rohankishore commented 1 year ago

Ok this has been noted and will be fixed asap (mostly today or within 2 days). Thanks for reporting.

nfoert commented 1 year ago

No problem.

rohankishore commented 1 year ago

Hi nfoert! I know it's been some time lol. We're actively trying to solve bugs and make Aura Text better.

In the latest version (v2.0), you can set Aura Text the default app for text formats without any errors. But the actual problem is, it doesn't read the file data. I'm still trying my best to solve this issue.

In the meantime, try out the latest version. It features a whole new UI with better smoothness and also some animations with a splash screen!

Thanks, Rohan

nfoert commented 1 year ago

No worries! The new splash screen, icons and UI look great.