ultralist icon indicating copy to clipboard operation
ultralist copied to clipboard

Reorder columns

Open joshmedeski opened this issue 4 years ago • 2 comments

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

joshmedeski avatar Aug 26 '20 03:08 joshmedeski

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 avatar Aug 26 '20 12:08 gammons

oh and btw :100: for the fzf idea!

gammons avatar Aug 26 '20 12:08 gammons