[Kbabel] [Patch] Tag navigation (wishlist #51641)
Stanislav Visnovsky
visnovsky@nenya.ms.mff.cuni.cz
Sat, 1 Feb 2003 15:51:59 +0100 (CET)
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.
--1908640017-1715331230-1044111119=:5243
Content-Type: TEXT/PLAIN; charset=US-ASCII
Hi!
Here is a prototype implementation for tag navigation in msgid.
The tag, which will be inserted by "Insert next tag" is
bold. You can use Ctrl + and Ctrl - to skip forward/back between
the tags.
The only thing I'm not sure about is the bold style.
Some comments while I used this feature yesterday:
1. It's quite fancy that you can see how the tag is highlighted - I
assumed it is a bug, but I really like it, since you can easily spot
the next tag.
2. Because of tag selection, msgid will scroll to ensure visibility of the
next tag. This works like a nice scrolling while you translate a long
message. Maybe the keys could work to scroll the text always, not only for
tags.
Stanislav
--1908640017-1715331230-1044111119=:5243
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="selecttag.diff"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.44.0302011551590.5243@nenya.ms.mff.cuni.cz>
Content-Description:
Content-Disposition: attachment; filename="selecttag.diff"
PyBzZWxlY3R0YWcuZGlmZg0KSW5kZXg6IGNvbW1vbi9yZWdleHBleHRyYWN0
b3IuY3BwDQo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09DQpSQ1MgZmlsZTogL2hv
bWUva2RlL2tkZXNkay9rYmFiZWwvY29tbW9uL3JlZ2V4cGV4dHJhY3Rvci5j
cHAsdg0KcmV0cmlldmluZyByZXZpc2lvbiAxLjMNCmRpZmYgLXUgLTMgLXAg
LXIxLjMgcmVnZXhwZXh0cmFjdG9yLmNwcA0KLS0tIGNvbW1vbi9yZWdleHBl
eHRyYWN0b3IuY3BwCTQgSmFuIDIwMDMgMTg6NDI6NTIgLTAwMDAJMS4zDQor
KysgY29tbW9uL3JlZ2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XNpb24gMS40
Nw0KZGlmZiAtdSAtMyAtcCAtcjEuNDcgbXltdWx0aWxpbmVlZGl0LmgNCi0t
LSBrYmFiZWwvbXltdWx0aWxpbmVlZGl0LmgJNCBKYW4gMjAwMyAxODo0Mjo1
NCAtMDAwMAkxLjQ3DQorKysga2JhYmVsL215bXVsdGlsaW5lZWRpdC5oCTEg
RmViIDIwMDMgMTQ6NDI6MjEgLTAwMDANCkBAIC0xNzcsNiArMTc3LDggQEAg
cHVibGljOg0KICAgIA0KICAgIHZvaWQgc2V0Q3VycmVudENvbG9yKGNvbnN0
IFRleHRDb2xvciBjb2xvcik7DQogICAgDQorICAgdm9pZCBzZWxlY3RUYWco
aW50IHN0YXJ0LCBpbnQgbGVuZ3RoKTsNCisgICANCiBwdWJsaWMgc2xvdHM6
DQogICAgdmlydHVhbCB2b2lkIHNldFRleHQoY29uc3QgUVN0cmluZyYgcyk7
DQogICAgdmlydHVhbCB2b2lkIHBhaW50U3BhY2VQb2ludHMoKTsNCkBAIC0y
NjAsNiArMjYyLDkgQEAgcHJpdmF0ZToNCiAgICBpbnQgX2N1cnJlbnRVbmlj
b2RlTnVtYmVyOw0KICAgIA0KICAgIEtCYWJlbEhpZ2hsaWdodGVyICogaGln
aGxpZ2h0ZXI7DQorICAgDQorICAgLy8gbmV4dCB0YWcgaGlnaGxpZ2h0aW5n
DQorICAgaW50IF90YWdTdGFydFBhcmEsIF90YWdTdGFydEluZGV4LCBfdGFn
RW5kUGFyYSwgX3RhZ0VuZEluZGV4Ow0KIH07DQogDQogI2VuZGlmIC8vIE1Z
TVVMVElMSU5FRURJVF9IDQo=
--1908640017-1715331230-1044111119=:5243--