forked from mirrors/org-mode
Make org-shiftmetaleft/org-shiftmetaright honour shift-select on MacOS
* lisp/org.el (org-shiftmetaleft): (org-shiftmetaright): Honour shift-select bound to meta-arrow on MacOS when `org-support-shift-select' is non-nil. Fixes https://orgmode.org/list/CAEOO5Tdg6sdjNfAg=J_DVQ50xx1oxaFaVyyYnda6O_-t3hG2jg@mail.gmail.com
This commit is contained in:
parent
97c7ad8bfc
commit
b4d7a24f07
|
@ -16493,6 +16493,10 @@ Calls `org-promote-subtree', `org-outdent-item-tree', or
|
||||||
individual commands for more information."
|
individual commands for more information."
|
||||||
(interactive)
|
(interactive)
|
||||||
(cond
|
(cond
|
||||||
|
((and (eq system-type 'darwin)
|
||||||
|
(or (eq org-support-shift-select 'always)
|
||||||
|
(and org-support-shift-select (org-region-active-p))))
|
||||||
|
(org-call-for-shift-select 'backward-char))
|
||||||
((run-hook-with-args-until-success 'org-shiftmetaleft-hook))
|
((run-hook-with-args-until-success 'org-shiftmetaleft-hook))
|
||||||
((org-at-table-p) (call-interactively 'org-table-delete-column))
|
((org-at-table-p) (call-interactively 'org-table-delete-column))
|
||||||
((org-at-heading-p) (call-interactively 'org-promote-subtree))
|
((org-at-heading-p) (call-interactively 'org-promote-subtree))
|
||||||
|
@ -16509,6 +16513,10 @@ Calls `org-demote-subtree', `org-indent-item-tree', or
|
||||||
individual commands for more information."
|
individual commands for more information."
|
||||||
(interactive)
|
(interactive)
|
||||||
(cond
|
(cond
|
||||||
|
((and (eq system-type 'darwin)
|
||||||
|
(or (eq org-support-shift-select 'always)
|
||||||
|
(and org-support-shift-select (org-region-active-p))))
|
||||||
|
(org-call-for-shift-select 'forward-char))
|
||||||
((run-hook-with-args-until-success 'org-shiftmetaright-hook))
|
((run-hook-with-args-until-success 'org-shiftmetaright-hook))
|
||||||
((org-at-table-p) (call-interactively 'org-table-insert-column))
|
((org-at-table-p) (call-interactively 'org-table-insert-column))
|
||||||
((org-at-heading-p) (call-interactively 'org-demote-subtree))
|
((org-at-heading-p) (call-interactively 'org-demote-subtree))
|
||||||
|
|
Loading…
Reference in a new issue