HomePhabricator

Converted Paste language selection to a typeahead

Description

Converted Paste language selection to a typeahead

Summary: Fixes T11532. The language selection for pastes is now a typeahead that is backed by pygments.dropdown-choices. There is still a bit of weirdness around making "auto-detection" the default state. To actually select a different language, you first need to remove the "auto detect" option that is pre-populated in a new paste. Other than that, it works as intended.

Test Plan:
Create a new paste with a file extension that can be auto-detected.
Created a new paste and manually selected the language
Edited a paste and changed the language.

Reviewers: Blessed Reviewers, epriestley

Reviewed By: Blessed Reviewers, epriestley

Subscribers: Korvin, epriestley, yelirekim

Maniphest Tasks: T11532

Differential Revision: https://secure.phabricator.com/D16463

Details

Provenance
jcoxAuthored on Aug 30 2016, 12:41 AM
industryPushed on Aug 30 2016, 12:41 AM
Reviewer
Blessed Reviewers
Differential Revision
D16463: Converted Paste language selection to a typeahead
Parents
rP60d1762a85ce: Redesign Config Application
Branches
Unknown
Tags
Unknown
Tasks
T11532: Replace paste language selection dropdown with a typeahead
Build Status
Buildable 13496
Build 17359: Run Core Tests