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

Add a feature to filter per column data #126

Open
ifigueroap opened this issue Jul 22, 2015 · 2 comments
Open

Add a feature to filter per column data #126

ifigueroap opened this issue Jul 22, 2015 · 2 comments

Comments

@ifigueroap
Copy link

Hi, I started using tabview to do remote (i.e. via ssh) log analysis with csv logs, which are easy to implement server side... I think it would be really helpful to be able to filter the rows according to some given data in specific columns, much like the autofilters in Google Docs spreadsheet...

I'm sorry if the feature already exists, but I did not find it in the commands cheat sheet...
I might be able to contribute some development effort if given initial pointers of what to hack and where ;-)

Best regards, and thanks for the cool software

@firecat53
Copy link
Collaborator

We've tossed this around a bit before, I think. One of the challenges is keeping the interface for it simple and unobtrusive. Right now there's only support for [number][character] command compositions, not [character][character], which is probably what is needed to maintain the Vim-like flavor. Other options are having an actual command line available like Vim or Ranger or using Ctrl-xxx commands in a more Emacs-ish flavor.

The actual module is all contained in tabview.py so far. Keys are in Viewer.define_keys(). Viewer.run() is the main loop.

Thanks!
Scott

@ifigueroap
Copy link
Author

Thanks Scott for your reply!
I'm not a Vim expert, in fact I'm more an (aquamacs) emacs guy ;)

A quick google search tells me that vim supports "filter" operations using the ! and !! commands... perhaps we can 'reinterpret' this as filter operators (although keeping the original buffer info!)

Cheers

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

No branches or pull requests

2 participants