List applied discounts that have codes
(There can be only one code on a cart at any one time)

Here's some example code that does the sort of thing you want:

{% if cart.couponCode %}
    {% set coupon = craft.commerce.getDiscountByCode(cart.couponCode) %}
{% endif %}

{% if cart.totalDiscount or coupon is not null %}

    {% for adjustment in cart.adjustments if adjustment.type == "Discount" %}
        {% set isCoupon = adjustment.optionsJson.code ? true : false %}                

    &lt;strong&gt;Applied: &lt;/strong&gt;

        {% if isCoupon %}                
            &lt;div class="coupon-item"&gt;
                &lt;div class="clear"&gt;
                    &lt;div class="cartSection__text"&gt;

                        Coupon: &lt;strong&gt;{{ adjustment.optionsJson.code }}&lt;/strong&gt;
                    &lt;/div&gt;
                &lt;/div&gt;

                &lt;div class="cartSection__description"&gt;
                    {{ adjustment.description }}
                &lt;/div&gt;
            &lt;/div&gt;
            {% set couponPrinted = true %}
        {% else % }
            etc...