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

Reorder columns #216

Open
joshmedeski opened this issue Aug 26, 2020 · 2 comments
Open

Reorder columns #216

joshmedeski opened this issue Aug 26, 2020 · 2 comments

Comments

@joshmedeski
Copy link

Can I change the output of the listed todo items?

I'm using it with FZF and would like to show the task content in the second column.

I'm a programmer so I'm happy to contribute to the project if possible.

Screen Shot 2020-08-25 at 9 59 57 PM

@gammons
Copy link
Owner

gammons commented Aug 26, 2020

Hi Josh! I have a fairly large rewrite of a bunch of the internal components of Ultralist. once that lands, I think it'd be relatively easy to add functionailty here to accomplish that.

The syntax could probably look like this:

ultralist l columns:id,completed,due,subject,projects,contexts

If you want to implement after my PR is merged, the steps you'd need to take are something like this:

  1. add a columns array of strings to the Filter struct,
  2. populate the Filter with the InputParser (see how it's done for projects or contexts to get an idea of how we'd do it for columns)
  3. pass the filter struct into the ScreenPrinter which could act on which columns were chosen.

I'm hoping to have my big PR done this week. After that, if you want to take a crack at it, feel free!

@gammons
Copy link
Owner

gammons commented Aug 26, 2020

oh and btw 💯 for the fzf idea!

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

No branches or pull requests

2 participants