{"id":16318612,"url":"https://github.com/vic/mrt","last_synced_at":"2025-04-04T10:57:58.296Z","repository":{"id":1413290,"uuid":"1491039","full_name":"vic/mrT","owner":"vic","description":"Inverse of shell command, find file first and act accordingly on it. A fast file finder with curses interface.","archived":false,"fork":false,"pushed_at":"2011-07-22T18:17:40.000Z","size":1959,"stargazers_count":3,"open_issues_count":7,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-09T21:11:57.844Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://vic.github.com/mrT","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"kryzhovnik/rails_admin_tag_list","license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-03-17T10:07:38.000Z","updated_at":"2013-10-18T13:14:19.000Z","dependencies_parsed_at":"2022-07-07T11:39:38.638Z","dependency_job_id":null,"html_url":"https://github.com/vic/mrT","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vic%2FmrT","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vic%2FmrT/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vic%2FmrT/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vic%2FmrT/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vic","download_url":"https://codeload.github.com/vic/mrT/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247166157,"owners_count":20894652,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T22:24:06.794Z","updated_at":"2025-04-04T10:57:58.275Z","avatar_url":"https://github.com/vic.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"Mr T\n====\n\n![MrT](http://images2.memegenerator.net/ImageMacro/6477443/I-pity-the-fool-who-doesnt-use-mrT.jpg?imageSize=Medium\u0026generatorName=Mr-T)\n\nWhat is it.\n-----------\n\nMrT is a curses based file finder. If you're familiar with Textmate's cmd-t,\nVim's [Command-T](http://wincent.com/products/command-t) plugin, or Emacs'\n[Anything](http://www.emacswiki.org/emacs/Anything), you'll feel right at home. \n\nMrT allows you to have fast, file completion from your shell prompt. You can \nuse it as-is by invoking the _mrt_ command, or use it as your default file\ncompletion strategy for some unix commands.\n\nRequirements\n------------\n\nMrT requires ruby version 1.8.7 or greater, it has been tested with 1.9.2. \nIt requires your ruby to have been compiled with the standard _curses_ and \n_readline_ libraries. If you are building your own ruby or are using _rvm_ \nmake sure you have needed development libraries before compiling ruby.\n\nWe use the [Command-T gem](http://github.com/vic/Command-T/tree/gem), we \nexpect our changes can be integrated into Command-T's main repo.\n\n\nInstallation\n------------\n\n    rake install\n\n\nYou might want to add the *pity* alias to your \u003ccode\u003e~/.bashrc\u003c/code\u003e to easilly\nkill a fool process.\n\n    alias pity=\"ps -eopid,cmd | mrt - 3\u003e\u00261 1\u003e\u00262 2\u003e\u00263 | awk '{print\\$1}' | xargs kill\"\n\n\n\nUsage\n-----\n\nAfter installation, you might be able to use the _mrt_ binary, right now it \ntakes an optional directory as only argument.\n\nMrT not only allows you to find files, if you hit the \u003ccode\u003eTAB\u003c/code\u003e key upon\na selected file, MrT will present a set of actions to execute on it.\n\nEven though MrT was created for fast file finding from the shell prompt, it\nis not restricted to work only on files. Actually, because of MrT's addon\ndesign you can easily configure it to complete on anything you want.\n\nAs with vim, you can use the _backslash_ key (we call it _Leader_) to change\nfrom one selector to another using _Leader_ + _someKey_. \nUse _Leader_ + _space_ to show available selectors.\n\n\nConfiguration\n-------------\n\nA YAML file \u003ccode\u003e~/.mrtrc\u003c/code\u003e with a Hash content can be used for\nconfiguration.\n\nDefault values are:\n\n\u003cpre\u003e\n# used to determine which files should be excluded from listings.\n# this is a list of glob patterns.\nignore_patterns: []\n\n# if true and no directory is specified, mrT tries to guess git project root.\nfind_git_root: true\n\n# max depth of directories to find files in.\nmax_depth: 15\n\n# max number of matches to display.\nmax_files: 10_000\n\n# if you're inside a Git repo, should Mr T use your ignore patterns?\n# by default Mr T will only use gitignore\npatterns_in_git_repo: false\n\n# should hidden directories be scanned?\nscan_dot_directories: false\n\n# should hidden files be shown?\nshow_dot_files: false\n\n# if you're inside a Git repo, should Mr T ignore the same files as Git?\nuse_git_ignore: true\n\u003c/pre\u003e\n\n\n\nCustomization\n-------------\n\nIf a \u003ccode\u003e.mrtrc.rb\u003c/code\u003e file is found at your \u003ccode\u003e$HOME\u003c/code\u003e directory\nit will be automatically loaded. On a git repo you can place it at the root dir.\n\n\nFuture\n------\n\nUse Command-T caching features, expose Command-T options as command line flags.\n\n\nContribute\n----------\n\nFeel free to adapt mrT to your needs, report any issue or send pull requests \nto the github repository:\n\n    http://github.com/vic/mrT\n\nAuthors\n-------\n\n- [Victor Hugo Borja](http://github.com/vic) \u003cvic.borja@gmail.com\u003e\n- [Eduardo Lopez](http://github.com/tapichu) \u003ceduardo.biagi@gmail.com\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvic%2Fmrt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvic%2Fmrt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvic%2Fmrt/lists"}