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

Possibility to print line numbers instead of content of chosen line #1014

Closed
6 of 15 tasks
carnager opened this issue Aug 12, 2017 · 2 comments
Closed
6 of 15 tasks

Possibility to print line numbers instead of content of chosen line #1014

carnager opened this issue Aug 12, 2017 · 2 comments
Labels

Comments

@carnager
Copy link

  • Category
    • fzf binary
    • fzf-tmux script
    • Key bindings
    • Completion
    • Vim
    • Neovim
    • Etc.
  • OS
    • Linux
    • Mac OS X
    • Windows
    • Windows Subsystem for Linux
    • Etc.
  • Shell
    • bash
    • zsh
    • fish
@junegunn
Copy link
Owner

fzf doesn't provide an option for that. But since we can easily do it in several ways, I don't think it's necessary to add it.

find . | nl | fzf | awk '{print $1}'

# If you want to hide line numbers
find . | nl | fzf --with-nth 2.. | awk '{print $1}'

@carnager
Copy link
Author

Yes, I guess that is good enough....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants