Ticket #3867 (closed enhancement: fixed)

Opened 7 years ago

Last modified 7 years ago

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

0001-editor-add-c-cursor-offset-from-BOF-support-for-macr.patch (2.1 KB) - added by sknaumov 7 years ago.
macro.0.sh (88 bytes) - added by sknaumov 7 years ago.

Change History

Changed 7 years ago by sknaumov

comment:1 Changed 7 years ago by andrew_b

Thanks!
Please don't forget document the new stuff.

comment:2 Changed 7 years ago by sknaumov

  • Component changed from mc-core to mcedit

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
changeset:fc68bd7aa3966853106da0812c513eef8e730a6f

Last edited 7 years ago by andrew_b (previous) (diff)

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

comment:6 Changed 7 years ago by andrew_b

  • Status changed from testing to closed
Note: See TracTickets for help on using tickets.