Re: [O] org-table-mark-field

2016-05-14 Thread Kaushal Modi
The solution was unnecessarily over-complicated. Below one seems simpler and more intuitive. It requires the hydra package. (defun org-table-mark-field () "Mark the current table field." (interactive) ;; Do not try to jump to the beginning of field if the point is already there (when (not

Re: [O] org-table-mark-field

2016-05-13 Thread Kaushal Modi
Here's a minor update with a bug fix (to handle the case when the point is at the end of a table field initially): (defun org-table-mark-field (n) "Mark the current table field. If N is negative, select (- N) fields to the left of the current field, including the current field. If N >= 2, selec

[O] org-table-mark-field

2016-05-13 Thread Kaushal Modi
Hi all, At times I need to copy content of the current field or few fields around the field in the current row. I realized that we do not have a function that selects fields. We have function that blanks a field but not one that selects. Please point me to the right function if I missed it. But a