blakesweeney / unite-taskwarrior

A unite.vim interface to taskwarrior
6 stars 2 forks source link

open /projects and /tags in a vsplit #11

Closed linuxcaffe closed 9 years ago

linuxcaffe commented 9 years ago

Projects and tags reports tend to be long and narrow, ideal candidates for opening in a vsplit.

Then, after selecting from that list of projects (or tags) generating a new set of tasks, does that vsplit close? I'm not sure..

blakesweeney commented 9 years ago

My preference is to leave that sort of configuration to users as unite already has a way of doing that. For example the vim command :Unite taskwarrior/projects -vertical -winwidth=40. Opens the project listing in a 40 character wide vertical split which is what you're after I think.

linuxcaffe commented 9 years ago

I tried these configs;

nnoremap  Tw :Unite taskwarrior -winheight=50
nnoremap  TwProjects :Unite taskwarrior/projects -vertical -winwidth=40
nnoremap  TwTags :Unite taskwarrior/tags -vertical -winwidth=40

and while the first one worked, the second two did not..

blakesweeney commented 9 years ago

Does doing :Unite taskwarrior/projects -vertical -winwidth=40 work? And what did you see when the didn't work? Also, those are some seriously long key mappings, do you really mean to type TwProjects and not just TwP or something?

linuxcaffe commented 9 years ago

1) just issuing the command above works just fine 2) I guess I was (wrongly) thinking more "command" than "keymap", :TwP< tab >< CR > , but you're totally right, just < leader >TwP is better!

linuxcaffe commented 9 years ago

I think this is looking like a personal use-case sort of thing, somewhat related to #5 and I'm gonna re-read the README.md, and try the suggestions, and maybe re-open this issue later. thanks!