Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The file view/edit history. #2733

Closed
mc-butler opened this issue Feb 13, 2012 · 18 comments
Closed

The file view/edit history. #2733

mc-butler opened this issue Feb 13, 2012 · 18 comments
Assignees
Labels
area: core Issues not related to a specific subsystem prio: medium Has the potential to affect progress
Milestone

Comments

@mc-butler
Copy link

Important

This issue was migrated from Trac:

Origin https://midnight-commander.org/ticket/2733
Reporter angel_il (@ilia-maslakov)
Mentions fsefrna@….com, info@….net (@metux)

The file view history must shows the list of files that has recently viewed or edited.

part of #280

simple_file_edit_history_list.patch Download (1.5 KB) https://www.midnight-commander.org/raw-attachment/ticket/280/simple_file_edit_history_list.patch - added by >filipsef 6 months ago.

proof-of-concept of a simple file edit history list

Note

Original attachments:

@mc-butler
Copy link
Author

Changed by angel_il (@ilia-maslakov) on Feb 13, 2012 at 18:57 UTC (comment 1)

  • Owner set to angel_il
  • Status changed from new to accepted

@mc-butler
Copy link
Author

Changed by angel_il (@ilia-maslakov) on Mar 27, 2012 at 10:29 UTC (comment 2)

  • Branch state changed from no branch to on review

branch: 2733_edit_view_history

please review

@mc-butler
Copy link
Author

Changed by angel_il (@ilia-maslakov) on Mar 27, 2012 at 11:55 UTC (comment 3)

  • Cc set to fsefrna@….com

@mc-butler
Copy link
Author

Changed by filipsef (fsefrna@….com) on Mar 27, 2012 at 14:59 UTC (comment 4)

I've been using the function for a couple of months now and I think it's more usable if we select the file (try_to_select) instead of editing it directly (do_edit_at_line) because

  • editing the selected file is just one more keypress (F4)
  • user may want to do other operations with the file (e.g. view it instead of editing) or with a different file in the same directory
  • it can be then used as a 'history of visited directories where a file was edited' which is useful when history of visited directories (Alt-Shift-H) gets bloated because of lots of directory changes

Anyway, the best would be if F4 ran the editor directly and Enter selected it. Also an inline search/filter similar to Ctrl-S in panel would be nice but all this would require to use something else than history_show.

I can work on it if there is a good chance that it will be accepted. Is there ?

@mc-butler
Copy link
Author

Changed by angel_il (@ilia-maslakov) on Mar 27, 2012 at 16:27 UTC (comment 5)

  • Milestone changed from 4.8.2 to Future Releases

@mc-butler
Copy link
Author

Changed by angel_il (@ilia-maslakov) on Mar 28, 2012 at 6:39 UTC (comment 4.6)

I can work on it if there is a good chance that it will be accepted. Is there ?

are you have github account? can you fork this branch?

@mc-butler
Copy link
Author

Changed by angel_il (@ilia-maslakov) on Mar 28, 2012 at 20:02 UTC (comment 4.7)

Replying to filipsef:

I've been using the function for a couple of months now and I think it's more usable if we select the file

I can work on it if there is a good chance that it will be accepted. Is there ?

please try new version..

enter - goto to file
f3 - open in viewer
f4 - open into editor

@mc-butler
Copy link
Author

Changed by filipsef (fsefrna@….com) on Apr 4, 2012 at 10:47 UTC (comment 8)

It looks fine, thanks a lot.

@mc-butler
Copy link
Author

Changed by angel_il (@ilia-maslakov) on Apr 4, 2012 at 11:36 UTC (comment 9)

maybe you wish rework the parser? little more :)
parser has follow trouble - files with space in names parsed incorrect.

@mc-butler
Copy link
Author

Changed by slavazanko (@slavaz) on Jun 6, 2012 at 11:06 UTC (comment 10)

  • Branch state changed from on review to on rework

@mc-butler
Copy link
Author

Changed by filipsef (fsefrna@….com) on May 13, 2016 at 7:02 UTC (comment 11)

I've been using this feature for years and I'd like to get it in.
I'm attaching an updated patch working with the current master.

@mc-butler
Copy link
Author

Changed by filipsef (fsefrna@….com) on May 13, 2016 at 7:05 UTC

updated patch working with master on 05-13-2016

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Nov 29, 2016 at 7:22 UTC (comment 12)

  • Owner angel_il deleted
  • Status changed from accepted to assigned

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Jul 28, 2019 at 6:30 UTC (comment 13)

  • Milestone changed from Future Releases to 4.8.24
  • Branch state changed from on rework to on review
  • Status changed from assigned to accepted
  • Owner set to andrew_b

Branch: 2733_edit_view_history
Initial [73165c9338be434adaf4be02ce528a9f6d159c02]

@mc-butler
Copy link
Author

Changed by metux (@metux) on Aug 8, 2019 at 20:25 UTC (comment 14)

  • Cc changed from fsefrna@….com to fsefrna@….com, info@….net

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Aug 10, 2019 at 6:40 UTC (comment 15)

  • Votes set to andrew_b
  • Branch state changed from on review to approved

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Aug 10, 2019 at 6:47 UTC (comment 16)

  • Votes changed from andrew_b to committed-master
  • Status changed from accepted to testing
  • Branch state changed from approved to merged
  • Resolution set to fixed

Merged to master: [c853a4f].

git log --pretty=oneline bc91c2d1d..c853a4fbf

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Aug 10, 2019 at 6:50 UTC (comment 17)

  • Status changed from testing to closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: core Issues not related to a specific subsystem prio: medium Has the potential to affect progress
Development

No branches or pull requests

2 participants