Zim

RFE: Edit source in Zim window

Bug #946224 reported by dotancohen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zim
Confirmed
Wishlist
Unassigned

Bug Description

Zim currently has an Edit Source mode, which opens the source code of the current page in an external editor. This function would be much more useful if the source were to appear in the Zim window itself, with the cursor placed in the same place where it was when in normal mode. A keyboard shortcut to switch between the two modes would be perfect!

Thanks!

Revision history for this message
dotancohen (dotancohen) wrote :

The implementation of this RFE would be a first step towards allowing arbitrary input in Zim.

Revision history for this message
Christoph Zwerschke (cito) wrote :

I agree that this would be very much desirable, with two caveats:

First, the current possibilty to open the page with an external editor should still be kept as an alternative. Using vi, emacs or a distraction-less editor may have some advantages over the built-in editor, and people should have the choice.

Second, it's not so easy to programmatically and reliably map a cursor location in the rendered document to the corresponding location in the markup source. I don't want to discourage anybody who wants to implement this, just raise awareness that this is a larger issue. As a first step, maybe implement a simpler, pragmatic solution for the mapping that works in 80% of the cases.

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

Replying at comment #1 I see this the other way around. Once we have the code in place to edit non-formatted text files in zim in paralel to formatted pages the next step is to allow switching the mode for a formatted page.

Changed in zim:
status: New → Confirmed
importance: Undecided → Wishlist
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.