[Midnight Commander] #3293: YAML support in mcedit

218 views
Skip to first unread message

Ticket System

unread,
Oct 24, 2014, 12:04:01 PM10/24/14
to dya...@gmail.com, mc-...@googlegroups.com
#3293: YAML support in mcedit
--------------------------------+-----------------------------------
Reporter: dyasny | Type: enhancement
Status: new | Priority: minor
Milestone: Future Releases | Component: mcedit
Version: master | Keywords:
Blocked By: | Blocking:
Branch state: no branch | Votes for changeset:
--------------------------------+-----------------------------------
Using mcedit to work on large YAML files, would be great to see syntax
highlighting for YAML.

Thanks,
Dan

--
Ticket URL: <http://www.midnight-commander.org/ticket/3293>
Midnight Commander <http://www.midnight-commander.org>
Midnight Development Center

Ticket System

unread,
Dec 3, 2016, 8:24:00 PM12/3/16
to dya...@gmail.com, mc-...@googlegroups.com
#3293: YAML support in mcedit
----------------------------+---------------------------------------
Reporter: dyasny | Owner:

Type: enhancement | Status: new
Priority: minor | Milestone: Future Releases
Component: mcedit | Version: master
Resolution: | Keywords:

Blocked By: | Blocking:
Branch state: no branch | Votes for changeset:
----------------------------+---------------------------------------

Comment (by RoBe):

Hi,

i made a very simple YAML syntax highlighting. Just copy file yaml.syntax
into
{{{
/usr/share/mc/syntax
}}}

Then backup file:
{{{
/usr/share/mc/syntax/Syntax
}}}
and add to the end:
{{{
file ..\*\\.(yml|YML)$ YAML\sFile
include yaml.syntax
}}}
and than restart mc or use shortcut CTRL + S on opened YAML file (support
files *.yml or *.YML).
After that you can see result.png.

--
Ticket URL: <http://www.midnight-commander.org/ticket/3293#comment:1>

Ticket System

unread,
Dec 4, 2016, 9:58:19 AM12/4/16
to dya...@gmail.com, andrew....@gmail.com, mc-...@googlegroups.com
#3293: YAML support in mcedit
----------------------------+--------------------------------
Reporter: dyasny | Owner: andrew_b
Type: enhancement | Status: accepted
Priority: minor | Milestone: 4.8.19
Component: mcedit | Version: master
Resolution: | Keywords:

Blocked By: | Blocking:
Branch state: no branch | Votes for changeset:
----------------------------+--------------------------------
Changes (by andrew_b):

* owner: => andrew_b
* status: new => accepted
* milestone: Future Releases => 4.8.19


--
Ticket URL: <http://www.midnight-commander.org/ticket/3293#comment:2>

Ticket System

unread,
Dec 4, 2016, 10:00:29 AM12/4/16
to dya...@gmail.com, andrew....@gmail.com, mc-...@googlegroups.com
#3293: YAML support in mcedit
----------------------------+----------------------------------------
Reporter: dyasny | Owner: andrew_b
Type: enhancement | Status: testing

Priority: minor | Milestone: 4.8.19
Component: mcedit | Version: master
Resolution: fixed | Keywords:
Blocked By: | Blocking:
Branch state: merged | Votes for changeset: committed-master
----------------------------+----------------------------------------
Changes (by andrew_b):

* status: accepted => testing
* votes: => committed-master
* resolution: => fixed
* branch_state: no branch => merged


Comment:

Applied as [055a8c6a4fa6840c8999d22038dc09f512bedee7].
Thanks!

--
Ticket URL: <http://www.midnight-commander.org/ticket/3293#comment:3>

Ticket System

unread,
Dec 4, 2016, 10:01:27 AM12/4/16
to dya...@gmail.com, andrew....@gmail.com, mc-...@googlegroups.com
#3293: YAML support in mcedit
----------------------------+----------------------------------------
Reporter: dyasny | Owner: andrew_b
Type: enhancement | Status: closed

Priority: minor | Milestone: 4.8.19
Component: mcedit | Version: master
Resolution: fixed | Keywords:
Blocked By: | Blocking:

Branch state: merged | Votes for changeset: committed-master
----------------------------+----------------------------------------
Changes (by andrew_b):

* status: testing => closed


--
Ticket URL: <http://www.midnight-commander.org/ticket/3293#comment:4>

Ticket System

unread,
Dec 4, 2016, 5:06:38 PM12/4/16
to dya...@gmail.com, andrew....@gmail.com, mc-...@googlegroups.com
#3293: YAML support in mcedit
----------------------------+----------------------------------------
Reporter: dyasny | Owner: andrew_b
Type: enhancement | Status: reopened

Priority: minor | Milestone: 4.8.19
Component: mcedit | Version: master
Resolution: | Keywords:
Blocked By: | Blocking:

Branch state: merged | Votes for changeset: committed-master
----------------------------+----------------------------------------
Changes (by mooffie):

* status: closed => reopened
* resolution: fixed =>


Comment:

The current version is lacking. Here are some fixes/improvements. (I also
made it use the colors we usually use.)

(@Roman: Your name is in the commit history. I removed it from the file
itself. I'm sure you'll agree with me that it'd be unfair to those coming
after you and invest more time in this that they won't get credit.)

BTW, @Roman: what systems are using {{var}}? It won't hurt to document
this.

--
Ticket URL: <http://www.midnight-commander.org/ticket/3293#comment:5>

Ticket System

unread,
Dec 5, 2016, 3:40:40 PM12/5/16
to dya...@gmail.com, andrew....@gmail.com, mc-...@googlegroups.com
#3293: YAML support in mcedit
----------------------------+----------------------------------------
Reporter: dyasny | Owner: andrew_b
Type: enhancement | Status: reopened
Priority: minor | Milestone: 4.8.19
Component: mcedit | Version: master
Resolution: | Keywords:
Blocked By: | Blocking:

Branch state: merged | Votes for changeset: committed-master
----------------------------+----------------------------------------

Comment (by zaytsev):

OH MY GOD, AWESOME!!!11 I'm writing a lot of YAML these days, and was
thinking to make a call to see if anyone can do a syntax for it.

@mooffie, "{{ var }}" is the Jinja2 (template system for Python) string
interpolation syntax. It has nothing to do with YAML per se, but, among
other things, YAML is used as a default playbook format for an
increasingly popular software configuration mangement system called
Ansible, which, incidentally, is written in Python and uses Jinja2 to
interpolate YAML strings. So, as such, I'd be happy if you could keep
anything "{{ .. }}" highlighted in a different color, such that it stands
out.

--
Ticket URL: <http://www.midnight-commander.org/ticket/3293#comment:6>

Ticket System

unread,
Dec 5, 2016, 4:08:47 PM12/5/16
to dya...@gmail.com, andrew....@gmail.com, mc-...@googlegroups.com
#3293: YAML support in mcedit
----------------------------+----------------------------------------
Reporter: dyasny | Owner: andrew_b
Type: enhancement | Status: reopened
Priority: minor | Milestone: 4.8.19
Component: mcedit | Version: master
Resolution: | Keywords:
Blocked By: | Blocking:

Branch state: merged | Votes for changeset: committed-master
----------------------------+----------------------------------------

Comment (by zaytsev):

P.S. I wish someone could think of tackling Scala ;-) the first
approximation would be to just alias it to Java, but, of course, there is
much more to it...

--
Ticket URL: <http://www.midnight-commander.org/ticket/3293#comment:7>

Ticket System

unread,
Dec 6, 2016, 3:21:42 AM12/6/16
to dya...@gmail.com, andrew....@gmail.com, mc-...@googlegroups.com
#3293: YAML support in mcedit
----------------------------+----------------------------------------
Reporter: dyasny | Owner: andrew_b
Type: enhancement | Status: closed

Priority: minor | Milestone: 4.8.19
Component: mcedit | Version: master
Resolution: fixed | Keywords:
Blocked By: | Blocking:

Branch state: merged | Votes for changeset: committed-master
----------------------------+----------------------------------------
Changes (by andrew_b):

* status: reopened => closed
* resolution: => fixed


Comment:

Applied as [54a0ccecaafff0af41990cff33453bfbb5c63eda].
Thanks!

--
Ticket URL: <http://www.midnight-commander.org/ticket/3293#comment:8>

Reply all
Reply to author
Forward
0 new messages