click on changed image filename -> open image in text editor

Bug #422082 reported by Alexander Belchenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Explorer
Fix Released
Wishlist
Ian Clatworthy

Bug Description

If I click on image file in status view or in working tree view then bzr-explorer trying to open it in configured text editor. This is wrong.

Explorer should use either system default image editor or have ability to configure it.

Ditto for other non-plain text files, e.g. OpenOffice document files.

Revision history for this message
Ian Clatworthy (ian-clatworthy) wrote : Re: [Bug 422082] [NEW] click on changed image filename -> open image in text editor

Alexander Belchenko wrote:
> Public bug reported:
>
> If I click on image file in status view or in working tree view then
> bzr-explorer trying to open it in configured text editor. This is wrong.

The status view is an explicit edit operation. Double-clicking in the
working tree ought to launch whatever application is registered as
"open" on your OS for that file type.

I don't want to register dozens of 'editors' in explorer's
configuration. I can see a case for doing a small number though, e.g.
for images, web pages and office documents.

Ian C.

Revision history for this message
Alexander Belchenko (bialix) wrote :

Ian Clatworthy пишет:
> Alexander Belchenko wrote:
>> Public bug reported:
>>
>> If I click on image file in status view or in working tree view then
>> bzr-explorer trying to open it in configured text editor. This is wrong.
>
> The status view is an explicit edit operation. Double-clicking in the
> working tree ought to launch whatever application is registered as
> "open" on your OS for that file type.
>
> I don't want to register dozens of 'editors' in explorer's
> configuration. I can see a case for doing a small number though, e.g.
> for images, web pages and office documents.

You can't avoid this fine-grained configuration forever.
As I wrote there is possible to use system-default tools for non-text files.

>
> Ian C.
>

Revision history for this message
Ian Clatworthy (ian-clatworthy) wrote :

I can't see any APIs in PyQt for getting the 'editor' for a file, just the app to open it. So ...

I'm thinking of adding a configuration file mapping mime-types to editor apps. That sounds more robust than just relying on file extensions. I need to chase down how to find the 'mime-type' of a file via PyQt to progress this. Or maybe mime-type is overkill and using extensions is fine?

Changed in bzr-explorer:
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
Ian Clatworthy (ian-clatworthy) wrote :

Custom editor support is available in rev 305

Changed in bzr-explorer:
assignee: nobody → Ian Clatworthy (ian-clatworthy)
milestone: none → 0.9.0
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.