{"id":19529004,"url":"https://github.com/myint/indent-finder","last_synced_at":"2025-04-26T11:34:05.696Z","repository":{"id":6863163,"uuid":"8112053","full_name":"myint/indent-finder","owner":"myint","description":"Vim plugin for detecting indentation of source code (fork of IndentFinder with Python 2 and 3 support)","archived":false,"fork":false,"pushed_at":"2023-10-14T02:58:20.000Z","size":2733,"stargazers_count":8,"open_issues_count":1,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2023-10-15T16:32:58.119Z","etag":null,"topics":["python","syntastic","vim"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/myint.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-02-09T17:04:44.000Z","updated_at":"2023-10-14T02:58:24.000Z","dependencies_parsed_at":"2022-08-30T12:11:15.537Z","dependency_job_id":null,"html_url":"https://github.com/myint/indent-finder","commit_stats":null,"previous_names":[],"tags_count":5,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myint%2Findent-finder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myint%2Findent-finder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myint%2Findent-finder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myint%2Findent-finder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/myint","download_url":"https://codeload.github.com/myint/indent-finder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224033223,"owners_count":17244553,"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":["python","syntastic","vim"],"created_at":"2024-11-11T01:21:28.286Z","updated_at":"2024-11-11T01:21:29.036Z","avatar_url":"https://github.com/myint.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"=============\nindent-finder\n=============\n\n.. image:: https://travis-ci.org/myint/indent-finder.svg?branch=master\n    :target: https://travis-ci.org/myint/indent-finder\n    :alt: Build status\n\nCopyright (C) 2002-2010 Philippe Fremy\n\nCopyright (C) 2013-2018 Steven Myint\n\nThis program is distributed under the BSD license. You should have received\na copy of the file ``LICENSE.txt`` along with this software.\n\n\nIntroduction\n============\n\nindent-finder is a vim plugin that detects the indentation of a file and sets\nvim's indentation settings appropriately to match.\n\n\nInstallation\n============\n\nMake sure ``set nocompatible`` is in your ``~/.vimrc``.\n\nTo install this plugin, copy the contents of the `plugin`_ directory to your\n``~/.vim/plugin`` directory::\n\n    $ git clone https://github.com/myint/indent-finder\n    $ mkdir -p ~/.vim/plugin/\n    $ cp -r ./indent-finder/plugin/* ~/.vim/plugin/\n\nOr to install it using pathogen.vim_::\n\n    $ cd ~/.vim/bundle\n    $ git clone https://github.com/myint/indent-finder\n\n.. _`pathogen.vim`: https://github.com/tpope/vim-pathogen\n.. _`plugin`: https://github.com/myint/indent-finder/tree/master/plugin\n\n\nCommand-line usage\n==================\n\nTo use from command line::\n\n    $ ./indent_finder.py test_files/space1/one.cc\n    space 1\n\n\nHistory\n=======\n\n2.x\n---\n\n- Always use tabs for makefiles.\n\n1.6.2\n-----\n\n- Clean up code.\n\n1.6.1\n-----\n\n- Respect user's ``expandtab`` and ``shiftwidth`` settings.\n- Detect indentation on all files and not just files with ``.`` in them.\n\n1.6\n---\n\n- Support one-space indentation.\n\n1.5.1\n-----\n\n- Improve performance.\n\n1.5\n---\n\n- Simplify installation process.\n- Detect when files have no valid indentation.\n- Add Python 3 support.\n- Default to user's ``tabstop`` when necessary.\n\n1.4\n---\n\n- Improve the heuristic, some file where incorrectly reported as tab when being\n  mixed.\n- ``('tab', 4)`` was returned instead of ``DEFAULT_OUTPUT`` when no decision\n  could be made. This is now configurable.\n- ``vim_output()`` now includes a comment about the detected indentation.\n\n1.31\n----\n\n- The --vim-output was not working. Fixed in this version.\n\n1.3\n---\n\n- Remove indent_checker, this was a useless program.\n- Improve the indentation algorithm to be able to detect mixed type\n  indentation.\n- Detect mixed type indentation, like the one used in Vim source files.\n\n1.2\n---\n\n- Add indent_checker, to check the consistency of the indentation of a source\n  tree.\n\n1.1\n---\n\n- Improve the heuristic by detecting indentation steps.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyint%2Findent-finder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmyint%2Findent-finder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyint%2Findent-finder/lists"}