Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose words via tmuxcomplete#words #20

Merged
merged 4 commits into from
Mar 19, 2014
Merged

Expose words via tmuxcomplete#words #20

merged 4 commits into from
Mar 19, 2014

Conversation

wellle
Copy link
Owner

@wellle wellle commented Mar 19, 2014

Adds a function tmuxcomplete#words that takes a single scrollback parameter. A scrollback of 0 will return only visible words. A scrollback of 100 will consider 100 scrolled off lines in each pane.

Here are some numbers for my current tmux sessions:

echo len(tmuxcomplete#words(0))    # 1348
echo len(tmuxcomplete#words(10))   # 2077
echo len(tmuxcomplete#words(100))  # 7893
echo len(tmuxcomplete#words(1000)) # 32865

Close #12.

wellle added a commit that referenced this pull request Mar 19, 2014
Expose words via tmuxcomplete#words
@wellle wellle merged commit fead8e4 into master Mar 19, 2014
@wellle wellle deleted the expose-words branch March 19, 2014 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

expose function that returns a list
1 participant