Skip to content

Support launching system editor with specific temp file extension#4691

Merged
schlessera merged 3 commits intomasterfrom
specific-ext
Feb 20, 2018
Merged

Support launching system editor with specific temp file extension#4691
schlessera merged 3 commits intomasterfrom
specific-ext

Conversation

@danielbachhuber
Copy link
Copy Markdown
Member

If the editor does some amount of syntax highlighting, it probably needs
the extension to enable the highlighting.

See wp-cli/config-command#48

If the editor does some amount of syntax highlighting, it probably needs
the extension to enable the highlighting.
php/utils.php Outdated
* @return string|bool Edited text, if file is saved from editor; false, if no change to file.
*/
function launch_editor_for_input( $input, $filename = 'WP-CLI' ) {
function launch_editor_for_input( $input, $filename = 'WP-CLI', $ext = 'tmp' ) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$filename => $title

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated in 847de9a

@schlessera schlessera merged commit 4a1cb3f into master Feb 20, 2018
@schlessera schlessera deleted the specific-ext branch February 20, 2018 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants