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

Fix #54 allow users to filter out panes based on arbitrary strings #55

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

eyalfir
Copy link

@eyalfir eyalfir commented Nov 16, 2015

Enable blacklisting pane titles in a configurable way.

@slashfoo
Copy link
Collaborator

hey @eyalfir thanks for the awesome suggestion, I'd like to suggest a few changes.

  1. rename the variable to something more meaningful like g:slimux_blacklist_words
  2. make the variable a list
  3. Instead of using grep -v use grep -vF and pass it as a parameter a \n concatenated list of the patterns specified. -F makes it so that these are interpreted as plain words, I think using words rather than regex would be good for now.
  4. Add a blurb about it in the README.md.

If you'd rather I did the changes or if you'd need anything, let me know.

@slashfoo slashfoo self-assigned this Sep 13, 2016
@sunaku
Copy link
Contributor

sunaku commented Sep 13, 2016

Couldn't this be done in a user's Vim configuration by registering an autocmd to run upon entering the slimux pane selection window? :neckbeard: The autocmd would (1) set modifiable and (2) use the global command g/blacklist_regex/d to filter out lines the user doesn't want to see.

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.

3 participants