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

savannah: editor needs read-only mode #83

Open
mc-butler opened this issue Dec 26, 2008 · 20 comments
Open

savannah: editor needs read-only mode #83

mc-butler opened this issue Dec 26, 2008 · 20 comments
Labels
area: mcedit mcedit, the built-in text editor prio: medium Has the potential to affect progress ver: 4.7.1 Reproducible in version 4.7.1

Comments

@mc-butler
Copy link

Important

This issue was migrated from Trac:

Origin https://midnight-commander.org/ticket/83
Reporter ossi (@ossilator)
Mentions dev.nul@….ru, mooffie@….com (@mooffie)

Original: http://savannah.gnu.org/bugs/?23513

Submitted by:Oswald Buddenhagen <ossi>Submitted on:Sat 07 Jun 2008 07:57:22 AM UTC
Category:EditorSeverity:3 - Normal
Status:NonePrivacy:Public
Assigned to:NoneOpen/Closed:Open
Release:current (CVS or snapshot)Operating System:All

Original submission:

the editor needs a read-only mode. in this mode, cursor navigation 
would work as normal, but any attempt to modify the content would 
pop up a confirmation dialog requesting to switch the mode.
the mode would be initialized from the file's access rights. a 
manual toggle (and possibly a command line switch to be able to use 
the editor as a viewer) would be provided. 

Note

Original attachments:

@mc-butler
Copy link
Author

Changed by slavazanko (@slavaz) on Dec 26, 2008 at 10:16 UTC (comment 1)

  • Component changed from mc-core to mcedit

@mc-butler
Copy link
Author

Changed by metux (@metux) on Dec 26, 2008 at 21:45 UTC (comment 2)

  • Type changed from defect to enhancement

@mc-butler
Copy link
Author

Changed by angel_il (@ilia-maslakov) on Mar 17, 2009 at 7:27 UTC (comment 3)

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

@mc-butler
Copy link
Author

Changed by kdave (@kdave) on Mar 17, 2009 at 10:35 UTC (comment 4)

  • Version set to 4.6.1
  • Milestone set to 4.7
  • Summary changed from savannah: need read-only mode to savannah: editor needs read-only mode

@mc-butler
Copy link
Author

Changed by angel_il (@ilia-maslakov) on Mar 23, 2009 at 16:35 UTC

first iteration

@mc-butler
Copy link
Author

Changed by styx (@styx) on Apr 18, 2009 at 7:24 UTC (comment 5)

#28 should be improved, not this one. At least this feature looks strange enough. And in the lights of previous days I think we just should merge viewer. For now viewer has hex editor ...

@mc-butler
Copy link
Author

Changed by styx (@styx) on Apr 19, 2009 at 18:26 UTC (comment 6)

  • Resolution set to invalid
  • Status changed from accepted to testing

@mc-butler
Copy link
Author

Changed by styx (@styx) on Apr 19, 2009 at 18:27 UTC (comment 7)

  • Status changed from testing to closed

@mc-butler
Copy link
Author

Changed by nickk9 (dev.nul@….ru) on Apr 25, 2010 at 22:26 UTC (comment 8)

  • Severity set to no branch
  • Resolution invalid deleted
  • Cc set to dev.nul@….ru
  • Version changed from 4.6.1 to 4.7.1
  • Component changed from mcedit to mcview
  • Status changed from closed to reopened

There is another convenient solution for this issue. 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).

@mc-butler
Copy link
Author

Changed by nickk9 (dev.nul@….ru) on Apr 25, 2010 at 22:27 UTC

@mc-butler
Copy link
Author

Changed by nickk9 (dev.nul@….ru) on Apr 25, 2010 at 22:29 UTC (comment 9)

  • Status changed from reopened to accepted
  • Owner changed from angel_il to nickk9

Here is proposed patch to implement this (default key binding is F14 aka shift-F4, keymap name ViewRunEditor).

@mc-butler
Copy link
Author

Changed by nickk9 (dev.nul@….ru) on Apr 26, 2010 at 21:35 UTC

@mc-butler
Copy link
Author

Changed by nickk9 (dev.nul@….ru) on Apr 26, 2010 at 21:38 UTC (comment 10)

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.

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Apr 27, 2010 at 16:55 UTC (comment 8.11)

It's not a solution for "read-only mode of editor". Ticket #2156 was created for "run editor from viewer" enhancement.

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Dec 21, 2010 at 11:29 UTC (comment 12)

  • Component changed from mcview to mcedit

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Oct 29, 2011 at 16:52 UTC (comment 13)

  • Branch state set to no branch
  • Milestone changed from 4.7 to Future Releases

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Feb 24, 2012 at 7:50 UTC (comment 14)

  • Owner nickk9 deleted
  • Status changed from accepted to assigned

@mc-butler
Copy link
Author

Changed by ossi (@ossilator) on Jan 11, 2014 at 23:01 UTC (comment 15)

  • Reporter changed from slavazanko to ossi
  • Description edited

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on May 12, 2014 at 14:54 UTC (comment 16)

Ticket #3211 has been marked as a duplicate of this ticket.

@mc-butler
Copy link
Author

Changed by mooffie (@mooffie) on Apr 6, 2015 at 5:26 UTC (comment 17)

  • Cc changed from dev.nul@….ru to dev.nul@….ru, mooffie@….com

@mc-butler mc-butler marked this as a duplicate of #3211 Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: mcedit mcedit, the built-in text editor prio: medium Has the potential to affect progress ver: 4.7.1 Reproducible in version 4.7.1
Development

No branches or pull requests

1 participant