about summary refs log tree commit diff stats
path: root/event.c
Commit message (Expand)AuthorAgeFilesLines
* ismax toggling on mouse based actionarg@mmvi2006-09-221-0/+2
* patched resizemouse according to sanders remarkarg@mmvi2006-09-221-2/+2
* sander check thisarg@mmvi2006-09-221-19/+37
* implemented the maximization as I described on the mailinglist, this feels be...arg@mmvi2006-09-221-2/+2
* added visibility check to enternotify as well 1.6arg@mmvi2006-09-151-1/+1
* removed a bunch of lines through making function signatures more consistent w...Anselm R. Garbe2006-09-121-37/+22
* small change to comments, renamed two set* functions in client.c into update*Anselm R. Garbe2006-09-111-2/+2
* applied Sanders max_and_focus.patchAnselm R. Garbe2006-09-041-4/+4
* simplified buttonpressAnselm R. Garbe2006-09-011-23/+12
* applied sanders patchAnselm R. Garbe2006-09-011-5/+8
* implemented Button2 press on tags for toggletag on the focused clientAnselm R. Garbe2006-08-311-2/+9
* simplified configurerequestAnselm R. Garbe2006-08-291-25/+22
* now dwm enforces max screen size also in tiled mode on non-floating clients w...Anselm R. Garbe2006-08-291-13/+14
* fixedAnselm R. Garbe2006-08-291-1/+3
* configurenotify remembers max geom now, and restores this if necessary, howev...Anselm R. Garbe2006-08-291-1/+11
* applied sanders focus_ patchesAnselm R. Garbe2006-08-281-1/+1
* applied sanders somepatches.patchAnselm R. Garbe2006-08-281-2/+4
* trying a different configurationAnselm R. Garbe2006-08-251-13/+11
* changed symbols for float/tiled mode, added mouse-driven mode toggle to butto...Anselm R. Garbe2006-08-251-10/+12
* new color stuff/new rendering stuffAnselm R. Garbe2006-08-251-1/+3
* applied Sanders focus_* patches, removed the unnecessary clean-prefix from th...Anselm R.Garbe2006-08-211-0/+2
* changed main event loopAnselm R.Garbe2006-08-151-0/+13
* removed NUMLOCKMASK, added dynamically calculated numlockmask insteadAnselm R.Garbe2006-08-141-3/+3
* applied sanders man page patch, rss="s">"month" ) type Archive struct{} func init() { register(Archive{}) } func (_ Archive) Aliases() []string { return []string{"archive"} } func (_ Archive) Complete(aerc *widgets.Aerc, args []string) []string { return nil } func (_ Archive) Execute(aerc *widgets.Aerc, args []string) error { if len(args) != 2 { return errors.New("Usage: archive <flat|year|month>") } widget := aerc.SelectedTab().(widgets.ProvidesMessage) acct := widget.SelectedAccount() if acct == nil { return errors.New("No account selected") } msg := widget.SelectedMessage() store := widget.Store() archiveDir := acct.AccountConfig().Archive store.Next() acct.Messages().Scroll() switch args[1] { case ARCHIVE_MONTH: archiveDir = path.Join(archiveDir, fmt.Sprintf("%d", msg.Envelope.Date.Year()), fmt.Sprintf("%02d", msg.Envelope.Date.Month())) case ARCHIVE_YEAR: archiveDir = path.Join(archiveDir, fmt.Sprintf("%v", msg.Envelope.Date.Year())) case ARCHIVE_FLAT: // deliberately left blank } store.Move([]uint32{msg.Uid}, archiveDir, true, func( msg types.WorkerMessage) { switch msg := msg.(type) { case *types.Done: aerc.PushStatus("Messages archived.", 10*time.Second) case *types.Error: aerc.PushStatus(" "+msg.Error.Error(), 10*time.Second). Color(tcell.ColorDefault, tcell.ColorRed) } }) return nil }