Add mate (TextMate) editor preset#5605
Open
toy wants to merge 1 commit into
Open
Conversation
Collaborator
|
The changes look reasonable, but isn't TextMate discontinued and obsolete? I wonder if it's really worth adding it to lazygit. |
Author
|
It is discontinued, but not sure if can be considered obsolete, as it is opensource and heavily bundle/plugin based. I still stumble upon people mentioning it and to add some data, checked what stackoverflow 2025 has and got following: Using: require 'csv'
require 'open-uri'
url = 'https://github.com/StackExchange/Survey/raw/refs/heads/main/packages/archive/2025/results.csv'
keys = %w[DevEnvsHaveWorkedWith DevEnvsWantToWorkWith DevEnvsAdmired DevEnvHaveEntry DevEnvWantEntry]
to_find = {
acme: /\bacme\b/i,
mate: /\b(text)?mate\b/i,
}
total = 0
count = Hash.new{ |h, k| h[k] = 0 }
URI.open(url) do |f|
CSV.foreach(f, headers: true) do |row|
total += 1
excerpt = row.to_h.slice(*keys).reject{ |_k, v| v == 'NA' }
search_string = excerpt.values.join(';')
found = to_find.filter_map{ |name, r| name if search_string =~ r }
next if found.empty?
found.each{ |name| count[name] += 1 }
pp excerpt
end
end
puts "total: #{total}"
count.each do |name, n|
puts format('%s: %d (%.3f%%)', name, n, n * 100.0 / total)
endFull output: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Description
Please check if the PR fulfills these requirements
go generate ./...)