Ticket #2156 (assigned enhancement)

Opened 14 years ago

Last modified 7 years ago

Run editor from viewer

Reported by: nickk9 Owned by:
Priority: minor Milestone: Future Releases
Component: mcview Version: master
Keywords: Cc: zaytsev
Blocked By: Blocking:
Branch state: on rework Votes for changeset:

Description (last modified by andrew_b) (diff)

From #83
It would be great if viewer would have key shortcut to run editor on the same file (so i view some file, understand that i need to edit it, then press, say Alt-F4 and get editor on this file from the same position).
I thought that default editor behaviour (placing current line in the middle of the window) not convenient when switching from viewer to editor (thus is results in shifting text), so i modified abovementioned patch to disable such scrolling in this very case.

Attachments

mc1.patch (13.0 KB) - added by andrew_b 14 years ago.

Change History

Changed 14 years ago by andrew_b

comment:1 Changed 14 years ago by andrew_b

  • Description modified (diff)
  • Summary changed from Run editor form viewer to Run editor from viewer

comment:2 Changed 14 years ago by zaytsev

Alt+F4 is very dangerous as a shortcut. It is normally stolen by X if you are running mc from within the terminal emulator and does nothing else but closes the current window. Shift+F4 is not too bad, BUT on the other hand, we've got one free place in there (F6), so maybe one could use this instead.

comment:3 Changed 14 years ago by zaytsev

  • Cc zaytsev added

comment:4 Changed 14 years ago by angel_il

  • Owner set to angel_il
  • Status changed from new to accepted
  • severity changed from no branch to on review

branch: 2156_run_editor_from_viewer
changest: fd6c871bcee6f74f480da6ed417916efdc3733d6

comment:5 Changed 14 years ago by angel_il

  • Version changed from 4.7.1 to master
  • Milestone changed from 4.7 to 4.7.3

comment:6 Changed 14 years ago by angel_il

  • Milestone changed from 4.7.3 to 4.7.4

comment:7 Changed 14 years ago by zaytsev

  • Milestone changed from 4.7.4 to 4.7.5

comment:8 Changed 14 years ago by andrew_b

  • severity changed from on review to on rework
  • Milestone changed from 4.7.5 to 4.7

Current 2156_run_editor_from_viewer branch doesn't respect the multi-screen engine. Rework is needed.

comment:9 Changed 12 years ago by andrew_b

  • Branch state set to on rework
  • Milestone changed from 4.7 to Future Releases

comment:10 Changed 10 years ago by ossi

i would move the hex mode to F6 (it's not such a commonly used feature that many people would be very upset about this change) and map the function to F4 to be consistent with mc itself.

Version 0, edited 10 years ago by ossi (next)

comment:11 Changed 7 years ago by andrew_b

  • Status changed from accepted to assigned
  • Owner angel_il deleted
Note: See TracTickets for help on using tickets.