]> git.neil.brown.name Git - edlib.git/commitdiff
Change "Mouse-Activate:" to simply "Activate:"
authorNeilBrown <neil@brown.name>
Wed, 7 Jun 2023 22:03:58 +0000 (08:03 +1000)
committerNeilBrown <neil@brown.name>
Wed, 28 Jun 2023 05:40:21 +0000 (15:40 +1000)
I want to activate buttons with the keyboard, so change the command to
drop the "Mouse-" prefix.

Signed-off-by: NeilBrown <neil@brown.name>
DOC/Developer/06-rendering.md
DOC/TODO.md
DOC/render-control
python/lib-url.py
python/module-notmuch.py
render-lines.c

index 780b3747eddd877ed82aac97b168ab7f484c6fb8..f51c2ed59a0317438fe0eb4f25dc5dbb5483dfd0 100644 (file)
@@ -205,7 +205,7 @@ document, rather than on its content.
   (1) or release (2) or motion (3).  If it was "release" then
   "render-lines" will check if the attribute "active-tag" appears in the
   markup for that location.  If it does then a message is sent to the
-  stack with a key formed from "Mouse-Activate:" followed by the value
+  stack with a key formed from "Activate:" followed by the value
   of "active-tag".  "mark" will be a mark at the location, "str1" will be
   the tag, and "str2" will be all attributes active at that location.
 
index 653c355b0353cd27789ef745c4fdc05bf91a8aac..f40c93be9a38d06110d5230b7f23ec4fc1c7fa7c 100644 (file)
@@ -9,10 +9,13 @@ the file.
 
 ### Trivial
 
+= [ ] :Cx-< and :Cx-> to shift view left and right and disable wrap
 - [ ] Unify edlib_timing and pane_too_long ??
 - [X] If an email part doesn't end with newline, last character is swallowed.
 - [X] What is rule for doc:content?  Does the mark move and get passed
       down, or is it copied and left unchanged?
+- [ ] notmuch: When moving among messages, always move cursor to search
+      pane
 
 ### Small
 
@@ -445,6 +448,7 @@ Module features
 
 ### Notmuch - overview
 
+- [ ] When moving among messages, always move cursor to search pane
 - [ ] 'other' notmuch search doesn't show older messages sometimes
 - [ ] split notmuch into two databases, last 6 months and the rest.
 - [ ] script to move messages every week - but not deleted messages
@@ -543,7 +547,7 @@ Module features
     to leave it confused.
 - [ ] maybe hide signature, unless small
 - [ ] When click on first char in tagged range, I don't see the tag and
-   don't get a Mouse-Activate event.
+   don't get a Activate event.
 - [ ] line wrap in header should not appear as space??
 - [ ] handle all Unicode newline chars.
 - [ ] Auto-hide depending on type - with extensible table
@@ -730,8 +734,8 @@ Module features
 
 ### lib-url
 
-- [ ] command to mark-up all URLs in a document
-- [ ] handlers for that markup.  xdg-open for links, maybe signal
+- [X] command to mark-up all URLs in a document
+- [X] handlers for that markup.  xdg-open for links, maybe signal
       register email client for mailto: links.
 - [ ] easy way for K:Enter on a link to do just like mouse-click
 - [ ] email: urls should not be followed unless they are visible.
index deb95a54053c509013ff635b39e45683e1b24987..14dfff69c42ba585659fce6c6e9fd67fae22f2b7 100644 (file)
@@ -133,7 +133,7 @@ Standard attributes are:
            attribute.
 
   active-tag:$tag If a mouse-click happens on text with this attribute,
-           Mouse-Activate:$tag is called with:
+           Activate:$tag is called with:
               ->mark being a new mark at the location
               ->str being $tag
              ->str2 being all attributes active at the location
index 5ec98c49f6743f6ac2fecb33f1993cdbf0eb74be..1fc272e65b28151b7cb91832e62992518d9d2be6 100644 (file)
@@ -9,7 +9,7 @@
 #
 # "render:url-view" is an overlay pane which:
 #  - responds to map-attr for render:url, adding the active-tag attr
-#  - handles Mouse-Activate:url to also activate the url
+#  - handles Activate:url to also activate the url
 
 import edlib
 
@@ -73,7 +73,7 @@ class url_view(edlib.Pane):
             return 1
 
     def handle_click(self, key, focus, mark, str2, **a):
-        "handle:Mouse-Activate:url"
+        "handle:Activate:url"
         a = str2.split(',')
         tag=""
         for w in a:
index a422aecea0ea0be83e51b58a89245368724bc00b..1d268b9b707230a9c4b5c06b5403ad946363df4f 100644 (file)
@@ -3369,15 +3369,15 @@ class notmuch_message_view(edlib.Pane):
         return 1
 
     def handle_toggle_hide(self, key, focus, mark, **a):
-        "handle-list/Mouse-Activate:email-hide/email:select:hide"
+        "handle-list/Activate:email-hide/email:select:hide"
         return self.handle_vis(focus, mark, "hide")
 
     def handle_toggle_full(self, key, focus, mark, **a):
-        "handle-list/Mouse-Activate:email-full/email:select:full"
+        "handle-list/Activate:email-full/email:select:full"
         return self.handle_vis(focus, mark, "full")
 
     def handle_toggle_extras(self, key, focus, mark, **a):
-        "handle-list/Mouse-Activate:email-extras/email:select:extras/doc:char-X"
+        "handle-list/Activate:email-extras/email:select:extras/doc:char-X"
         if not mark:
             # a mark at the first "sep" part will identify the headers
             mark = edlib.Mark(focus)
@@ -3415,7 +3415,7 @@ class notmuch_message_view(edlib.Pane):
         return 1
 
     def handle_save(self, key, focus, mark, **a):
-        "handle-list/Mouse-Activate:email-save/email:select:save"
+        "handle-list/Activate:email-save/email:select:save"
 
         file = focus.call("doc:get-attr", "multipart-prev:email:filename", mark, ret='str')
         if not file:
@@ -3433,7 +3433,7 @@ class notmuch_message_view(edlib.Pane):
         return 1
 
     def handle_external(self, key, focus, mark, **a):
-        "handle-list/Mouse-Activate:email-external view/email:select:external view"
+        "handle-list/Activate:email-external view/email:select:external view"
         type = focus.call("doc:get-attr", "multipart-prev:email:content-type", mark, ret='str')
         prefix = focus.call("doc:get-attr", "multipart-prev:email:prefix", mark, ret='str')
         ext = focus.call("doc:get-attr", "multipart-prev:email:ext", mark, ret='str')
index b334a3bc6ea541f4d143ee2e61707d90642bda3c..4209b02d9984ea63b04da9346095af741f31d25d 100644 (file)
@@ -1393,7 +1393,7 @@ DEF_CMD(render_lines_set_cursor)
                        tag = get_active_tag(xyattr);
                        if (tag) {
                                char *c = NULL;
-                               asprintf(&c, "Mouse-Activate:%s", tag);
+                               asprintf(&c, "Activate:%s", tag);
                                if (c)
                                        call(c, focus, 0, m2, tag,
                                             0, ci->mark, xyattr);