Ticket #390 (closed enhancement: fixed)

Opened 10 months ago

Last modified 10 months ago

Change view params to be local to the edited file

Reported by: rob Owned by: rob
Priority: major Milestone: 0.7.3
Component: application Keywords:
Cc:

Description

Currently, all the view parameters (line numbers, word wrapping, etc.) in the View menu affect all instances of the major mode. This should be changed to be local to the specific view, because it's possible that views could have different parameters, related to the support of vi and emacs options of tickets #16 and #17. For instance, one python mode could use tabs for indentation, and one spaces.

Attachments

Change History

Changed 10 months ago by rob

  • status changed from new to closed
  • resolution set to fixed

(In [1126]) Fixed #390: changed Fundamental mode to use settings local to the view

  • added local keyword to Params
  • added classprefsCopyToLocals and classprefsCopyFromLocals to ClassPrefs? mixin that copy classprefs marked with the local keyword to/from a new instance attribute called 'locals'
  • added classprefsCopyToLocals to MajorMode? initialization
  • changed FundamentalMode? to look at locals instead of classprefs for STC settings
  • added code to pull vim settings into locals
  • moved the actions related to the Fundamental settings into fundamental from mainmenu and placed them in the getCompatibleActions in the plugin
  • added FundamentalSettingToggle? superclass and recoded the actions to use that
  • modified the test_vim_modeline to have the correct indent spacing as indicated by its modeline

Add/Change #390 (Change view params to be local to the edited file)

Author



Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.