Ticket #3867 (closed enhancement: fixed)
Add a format specifier for editor macro to return cursor position from BOF
Reported by: | sknaumov | Owned by: | andrew_b |
---|---|---|---|
Priority: | major | Milestone: | 4.8.20 |
Component: | mcedit | Version: | master |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Branch state: | merged | Votes for changeset: | committed-master |
Description
"man mcedit" states:
MACRO ... %c The cursor column position number.
This functionality is not actually implemented. I propose to use %c to get cursor offset from the beginning of a file. I've managed to implement kind of autocompletion for golang using %c and gocode.
Attachments
Change History
Changed 7 years ago by sknaumov
- Attachment 0001-editor-add-c-cursor-offset-from-BOF-support-for-macr.patch added
comment:3 Changed 7 years ago by andrew_b
- Status changed from new to accepted
- Owner set to andrew_b
- Milestone changed from Future Releases to 4.8.20
comment:4 Changed 7 years ago by andrew_b
- Votes for changeset set to andrew_b
- Branch state changed from no branch to approved
Thanks!
Applied with minor modifications.
Branch:3867_mcedit_c_macro
chngeset:fc68bd7aa3966853106da0812c513eef8e730a6f
comment:5 Changed 7 years ago by andrew_b
- Status changed from accepted to testing
- Votes for changeset changed from andrew_b to committed-master
- Resolution set to fixed
- Branch state changed from approved to merged
Merged to master: [98294fc1e6122541c798413be9d393fa75ae3da6].
Note: See
TracTickets for help on using
tickets.