diff --git a/autoload/textobj/user.vim b/autoload/textobj/user.vim index 79dcbd2..bf21064 100644 --- a/autoload/textobj/user.vim +++ b/autoload/textobj/user.vim @@ -1,5 +1,5 @@ " textobj-user - Create your own text objects -" Version: 0.7.1 +" Version: 0.7.2 " Copyright (C) 2007-2015 Kana Natsuno " License: MIT license {{{ " Permission is hereby granted, free of charge, to any person obtaining diff --git a/doc/textobj-user.txt b/doc/textobj-user.txt index a96760c..f286f4b 100644 --- a/doc/textobj-user.txt +++ b/doc/textobj-user.txt @@ -1,6 +1,6 @@ *textobj-user.txt* Create your own text objects -Version 0.7.1 +Version 0.7.2 Script ID: 2100 Copyright (C) 2007-2015 Kana Natsuno License: MIT license {{{ @@ -409,16 +409,8 @@ textobj#user#map({plugin-name}, {specs}) - A key mapping defined by textobj#user#map() is actually used, and - The corresponding text object does not exist at that moment. - - - -============================================================================== -OBSOLETE API *textobj-user-obsolete-api* - *textobj#user#move()* textobj#user#move({pattern}, {flags}, {previous-mode}) - Note: This function is obsolete. It will be removed in sometime. - Move the cursor to the appropriate object defined by {pattern}. {flags} is a string, which can contain the following character flags: @@ -441,8 +433,6 @@ textobj#user#move({pattern}, {flags}, {previous-mode}) *textobj#user#select()* textobj#user#select({pattern}, {flags}, {prevous-mode}) - Note: This function is obsolete. It will be removed in sometime. - Select an appropriate object defined by {pattern}. The following places are scaned to find an appropriate object: @@ -468,12 +458,12 @@ textobj#user#select({pattern}, {flags}, {prevous-mode}) For the detail of {previous-mode}, see |textobj#user#move()|. - Return value is not defined. + This function returns a list of the start position and the end + position for an object. Each position is [{lnum}, {col}]. + If there is no appropriate object, 0 is returned instead. *textobj#user#select_pair()* textobj#user#select_pair({pattern1}, {pattern2}, {flags}, {previous-mode}) - Note: This function is obsolete. It will be removed in sometime. - Select the appropriate object which starts with {pattern1} and ends with {pattern2}. @@ -497,6 +487,12 @@ textobj#user#select_pair({pattern1}, {pattern2}, {flags}, {previous-mode}) Return value is not defined. + + + +============================================================================== +OBSOLETE API *textobj-user-obsolete-api* + *textobj#user#define()* textobj#user#define({pattern}, {pattern1}, {pattern2}, {guideline}) Note: This function is obsolete. It will be removed in sometime. @@ -569,6 +565,10 @@ KNOWN ISSUES *textobj-user-known-issues* ============================================================================== CHANGELOG *textobj-user-changelog* +0.7.2 2017-08-22T21:07:30+09:00 *textobj-user-changelog-0.7.2* + - |textobj#user#select()|: Support a new flag 'N'. + - Fix the plugin itself to be easily reloaded. + 0.7.1 2015-05-03T01:45:37+09:00 *textobj-user-changelog-0.7.1* - Fix a bug that count given to "move-n" and others for "pattern"-based text objects in Visual mode is ignored.