{"thread":{"id":"52571","subject":"[PATCH 0/1] Add *.txt to .editorconfig","startedAt":"2020-01-05T14:01:03Z","lastAt":"2020-01-05T14:01:04Z","messageCount":2,"participants":["Hans Jerry Illikainen"],"isPatch":true,"patchVersion":1,"patchTotal":1},"messages":[{"id":"389249","messageId":"20200105140055.19679-1-hji@dyntopia.com","threadId":"52571","inReplyTo":null,"subject":"[PATCH 0/1] Add *.txt to .editorconfig","fromName":"Hans Jerry Illikainen","fromEmail":"hji@dyntopia.com","sentAt":"2020-01-05T14:00:54Z","receivedAt":"2020-01-05T14:01:03Z","isPatch":true,"sender":{"key":"hji@dyntopia.com","avatar":"https://avatars.githubusercontent.com/u/8175517?v=4"},"body":"Minor patch that adds *.txt to .editorconfig to avoid annoyance when\nediting git docs with an editor set to indent with space as a default.\n\nHans Jerry Illikainen (1):\n  editorconfig: indent text files with tabs\n\n .editorconfig | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\n--\n2.20.1\n"},{"id":"389250","messageId":"20200105140055.19679-2-hji@dyntopia.com","threadId":"52571","inReplyTo":"20200105140055.19679-1-hji@dyntopia.com","subject":"[PATCH 1/1] editorconfig: indent text files with tabs","fromName":"Hans Jerry Illikainen","fromEmail":"hji@dyntopia.com","sentAt":"2020-01-05T14:00:55Z","receivedAt":"2020-01-05T14:01:04Z","isPatch":true,"sender":{"key":"hji@dyntopia.com","avatar":"https://avatars.githubusercontent.com/u/8175517?v=4"},"body":"Previously, the .editorconfig did not specify an indentation style for\ntext files.  However, a quick look for indentation-like spacing suggest\nthat tabs are more common for documentation:\n\n$ git grep -Pe '^ {4}' -- '*.txt' |wc -l\n2683\n$ git grep -Pe '^\\t' -- '*.txt' |wc -l\n14011\n\nNote that there are a lot of files that indent list continuations (and\nother things) with a single space -- if the first search was made\nwithout the fixed quantifier the result would look very different.\nHowever, the result does correspond with my anecdotal experience when\nediting git documentation.\n\nThis commit adds *.txt to .editorconfig as an extension that should be\nindented with tabs.\n\nSigned-off-by: Hans Jerry Illikainen <hji@dyntopia.com>\n---\n .editorconfig | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/.editorconfig b/.editorconfig\nindex 42cdc4bbfb..f9d819623d 100644\n--- a/.editorconfig\n+++ b/.editorconfig\n@@ -4,7 +4,7 @@ insert_final_newline = true\n \n # The settings for C (*.c and *.h) files are mirrored in .clang-format.  Keep\n # them in sync.\n-[*.{c,h,sh,perl,pl,pm}]\n+[*.{c,h,sh,perl,pl,pm,txt}]\n indent_style = tab\n tab_width = 8\n \n-- \n2.20.1\n\n"}]}