{"id":18980859,"url":"https://github.com/sublimetext/uberselection","last_synced_at":"2025-04-19T19:13:36.139Z","repository":{"id":66974253,"uuid":"1657964","full_name":"SublimeText/UberSelection","owner":"SublimeText","description":"Commands to extend the functionality of Sublime Text's multiselection.","archived":false,"fork":false,"pushed_at":"2011-04-25T09:38:26.000Z","size":236,"stargazers_count":17,"open_issues_count":1,"forks_count":1,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-04-16T15:15:21.308Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SublimeText.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-04-24T22:35:49.000Z","updated_at":"2023-01-06T14:05:52.000Z","dependencies_parsed_at":"2023-02-20T15:35:18.387Z","dependency_job_id":null,"html_url":"https://github.com/SublimeText/UberSelection","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SublimeText%2FUberSelection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SublimeText%2FUberSelection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SublimeText%2FUberSelection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SublimeText%2FUberSelection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SublimeText","download_url":"https://codeload.github.com/SublimeText/UberSelection/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249774402,"owners_count":21323627,"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-11-08T16:07:57.087Z","updated_at":"2025-04-19T19:13:36.112Z","avatar_url":"https://github.com/SublimeText.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"=============\r\nUberselection\r\n=============\r\n\r\nMake complex selections and replace text in a buffer via textual commands.\r\nInspired in Vim's line-oriented ex mode.\r\n\r\n\r\nGetting Started\r\n===============\r\n\r\n* Install `AAAPackageDev`_ (dependency)\r\n* Install `UberSelection`_\r\n\r\n.. _AAAPackageDev: https://bitbucket.org/guillermooo/uberselection/downloads/UberSelection.sublime-package\r\n.. _UberSelection: https://bitbucket.org/guillermooo/uberselection/downloads/UberSelection.sublime-package\r\n\r\nIf you're running a full installation, simply doubleclick on the `.sublime-package` files.\r\nIf you're running a portable installation, perform an `installation by hand`_.\r\n\r\n.. _installation by hand: http://sublimetext.info/docs/extensibility/packages.html#installation-of-packages-with-sublime-package-archives\r\n\r\nUsage\r\n=====\r\n\r\n#. Run from Sublime's console with ``view.run_command(\"uber_selection\")``\r\n#. Issue command as explained further below\r\n\r\nExamples\r\n========\r\n\r\n``10,20V/this/``\r\n    Select lines containing ``this`` between lines 10 and 20 (inclusive).\r\n\r\n``.,.+20-V/this/``\r\n    Select lines **not** containing ``this`` from the current line to 20 lines down\r\n    from it.\r\n\r\n``%s/this/that/``\r\n    Replace ``this`` with ``that`` in the whole file.\r\n\r\nFour Ways of Issuing Commands\r\n=============================\r\n\r\n#. ``\u003cSUBLIME COMMAND\u003e[ \u003cARG\u003e]``\r\n#. ``\u003cLINE REF\u003e[,\u003cLINE REF\u003e]``\r\n#. ``\u003cBUFFER COMMAND\u003e[;\u003cBUFFER COMMAND\u003e]*``\r\n#. ``\u003cLINE REF\u003e\u003cBUFFER COMMAND\u003e[;\u003cBUFFER COMMAND\u003e]*``\r\n\r\nAll tokens are explained in the following sections\r\n\r\nTokens\r\n======\r\n\r\nSublime Commands\r\n****************\r\n\r\n(Not all commands work.)\r\n\r\n``w [arg]``\r\n    Save the active buffer. If you pass an arg to it, the Save As dialog will\r\n    show up. At the moment, the passed arg is ignored.\r\n``wall``\r\n    Save all opened buffers.\r\n``wq``\r\n    Save the active buffer and exit.\r\n``ZZ``\r\n    Save the active buffer and exit.\r\n``ls``\r\n    Show list of opened views.\r\n``e``\r\n    Show list of files in current directory.\r\n``q``\r\n    Exit.\r\n``n``\r\n    Next view.\r\n``N``\r\n    Previous view.\r\n\r\nLine References\r\n***************\r\n\r\nSelect lines or ranges of lines in the active view.\r\n\r\n``[1-9]+``\r\n    Designates line by number.\r\n\r\n``.``\r\n    Desigates the current line (first cursor in selection).\r\n\r\n``$``\r\n    Designates the last line in the view.\r\n\r\n``%``\r\n    Designates all lines in the view.\r\n\r\n``/what/``\r\n    Looks forwards to find first line matching ``what`` or returns current line\r\n    if none found.\r\n\r\n``?what?``\r\n    Looks backwards to find first line matching ``what`` or returns current\r\n    line if none found.\r\n\r\nYou can also specify offsets with ``[+-][1-9]+``.\r\n\r\nIn order to designate a range, use two comma separated line references::\r\n\r\n    .+5,/end$/-3\r\n\r\nText Commands\r\n*************\r\n\r\nSelect lines and perform replacements in the view.\r\n\r\n``V/what/\u003cflags\u003e``\r\n    Selects all lines containing ``what``. Case insensitive by default. Use the\r\n    flag ``c`` to make a case-sensitive search.\r\n\r\n``-V/what/\u003cflags\u003e``\r\n    Same as above, but excludes the lines matching ``what``.\r\n\r\n``s/what/with/``\r\n    Replaces all instances of ``what`` with ``with``. Case sensitive.\r\n    The separator ``/`` can be substituted by any of: ``! $ % \u0026 = / : ;``\r\n\r\nYou can chain commands by separating them with a semicolon (``;``)::\r\n\r\n    .+5,/end$/-3V/foo/;-V/bar/;s/foo/BOO!/","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsublimetext%2Fuberselection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsublimetext%2Fuberselection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsublimetext%2Fuberselection/lists"}