<commit_before>function! wincent#commands#find(args) abort
    set errorformat+=%f

    " TODO: make this async
    cexpr system('find ' . a:args)
endfunction

function! s:Open(app, file)
  if !executable('open')
    echoerr 'No "open" executable'
    return
  endif

  silent execute '!open -a ' . shellescape(a:app) . ' ' . shellescape(a:file)
endfunction

function! wincent#commands#lint() abort
  " TODO: make this smart about which compiler plug-in to used based on location

  " Make subsequent `:make` work (eg. invoked by Dispatch's `m<CR>` mapping).
  compiler eslint

  " Do an immediate Make.
  Make
endfunction

function! wincent#commands#typecheck() abort
  " Make subsequent `:make` work (eg. invoked by Dispatch's `m<CR>` mapping).
  compiler tsc

  " Do an immediate Make.
  Make
endfunction

function! wincent#commands#mvim() abort
  let l:filename=expand('%')
  if empty(l:filename)
    echoerr 'No current file'
    return
  endif

  call s:Open('MacVim.app', l:filename)
endfunction

function! wincent#commands#vim() abort
  let l:filename=expand('%:p')
  if empty(l:filename)
    echoerr 'No current file'
    return
  endif

  let l:url=shellescape(l:filename)
  call system('open vim://' . l:url)
endfunction

" Map of .git directories to GitHub user-or-org/project identifiers.
let s:directories={}
<commit_msg>feat(vim): let :Mvim open current directory<commit_after>function! wincent#commands#find(args) abort
    set errorformat+=%f

    " TODO: make this async
    cexpr system('find ' . a:args)
endfunction

function! s:Open(app, file)
  if !executable('open')
    echoerr 'No "open" executable'
    return
  endif

  silent execute '!open -a ' . shellescape(a:app) . ' ' . shellescape(a:file)
endfunction

function! wincent#commands#lint() abort
  " TODO: make this smart about which compiler plug-in to used based on location

  " Make subsequent `:make` work (eg. invoked by Dispatch's `m<CR>` mapping).
  compiler eslint

  " Do an immediate Make.
  Make
endfunction

function! wincent#commands#typecheck() abort
  " Make subsequent `:make` work (eg. invoked by Dispatch's `m<CR>` mapping).
  compiler tsc

  " Do an immediate Make.
  Make
endfunction

function! wincent#commands#mvim() abort
  let l:filename=expand('%')
  call s:Open('MacVim.app', l:filename)
endfunction

function! wincent#commands#vim() abort
  let l:filename=expand('%:p')
  if empty(l:filename)
    echoerr 'No current file'
    return
  endif

  let l:url=shellescape(l:filename)
  call system('open vim://' . l:url)
endfunction

" Map of .git directories to GitHub user-or-org/project identifiers.
let s:directories={}

{'fraction_non_alphanumeric': 0.1199086410354016, 'fraction_numerical': 0.0, 'mean_word_length': 4.183431952662722, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '133212', 'n_tokens_mistral': 887, 'n_tokens_neox': 850, 'n_words': 263}