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

Search/go-to column label by name #104

Open
wavexx opened this issue Feb 7, 2015 · 3 comments
Open

Search/go-to column label by name #104

wavexx opened this issue Feb 7, 2015 · 3 comments

Comments

@wavexx
Copy link
Member

wavexx commented Feb 7, 2015

I feel there should be a way to jump to a column label, directly by name.

Currently I'm disabling the header, performing a search, skip to the column I'm looking for, and then toggling the header again.

I don't have a concrete idea on how to change the UI for this. Ideally I would use some sort of incremental live search. This requires a new binding to initiate the search ('l' for label?) and maybe reuse n/p to iterate across matches.

Better proposals?

@wavexx
Copy link
Member Author

wavexx commented Feb 22, 2015

What about using a prefix argument for search ?

/ => normal search
0/ => search labels
1/ => search column
2/ => search row

@firecat53
Copy link
Collaborator

Hummm....I'll have to think on that one...

@wavexx
Copy link
Member Author

wavexx commented Feb 22, 2015

It's not very vi-like, I agree.

Adding search restrictions on row/columns is definitely helpful though, and searching on labels (and index in the future) is something that's missing right now.

Adding bindings for each mode seems wasteful.

A postfix form of search ([char][type]) where 'char' could be 'f/r' for 'forward/reverse' and [type] would be 'c/r/l/i' for column/row/label/index, which would be similar to the behavior of usual operations in vim. You could even overload type to 'c/ac' for column (from current position) and "a column" (for searching from start).

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