Ticket #4413 (closed enhancement: fixed)
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: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: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
Merged to master: [2df6771645af575c2265a19dbc6629206e735d9e].
I meant location of lang.syntax file like my c.syntax would be put in
~/.config/mc/syntax/c.syntax