Ticket #4413 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 years ago

Syntax definitions in user location don't work.

Reported by: cieply Owned by: andrew_b
Priority: major Milestone: 4.8.29
Component: mcedit Version: master
Keywords: user syntax schemes Cc:
Blocked By: Blocking: #4320
Branch state: merged Votes for changeset: committed-master

Description

I wanted to make my own syntax without being force to change system files (/usr/share/mc/syntax) and this doesn't work.

I tried all possible locations:

~/.config/mc/syntax
~/.config/mc/mcedit/syntax
~/.local/share/mc/syntax

Is there any way to use own syntax schemes without being force to become root or to ask admin for it?

Change History

comment:1 Changed 2 years ago by cieply

I meant location of lang.syntax file like my c.syntax would be put in

~/.config/mc/syntax/c.syntax

comment:2 Changed 2 years ago by zaytsev

Related to #4320 .

comment:3 Changed 2 years ago by andrew_b

  • Owner set to andrew_b
  • Status changed from new to accepted
  • Branch state changed from no branch to on review
  • Milestone changed from Future Releases to 4.8.29

Branch: 4413_user_syntax
changeset:f99b6efb56cbc2999bd58e250efa6b6d39a32daf

All user's syntax-related stuff are located in ~/.local/share/mc/mcedit/syntax/.

comment:4 Changed 2 years ago by andrew_b

  • Blocking 4320 added

comment:5 Changed 2 years ago by cieply

I think that ~/.local/share/mc/ should mirror directory hierarchy in /usr/share/mc and user syntax should be in ~/.local/share/mc/syntax/.

comment:6 Changed 2 years ago by zaytsev

I don't have a very strong opinion on this, but I think that cieply makes a valid point. I would prefer our user overrides tree to mirror system and library trees to avoid confusion.

comment:8 Changed 2 years ago by andrew_b

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

comment:9 Changed 2 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:10 Changed 2 years ago by andrew_b

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