I had a temporary colostomy for 2 months, in 1999, after a colon resection for rectal cancer (90% of sigmoid removed). I would have 3 bm's during any meal, the minute I began to chew, I had to go. It was just awful. I had been on the liquid diet in the hospital and just wanted to eat in the worst way.
Long story short, I discovered I needed to go on a low residue diet. I faithfully kept a food journal for over a year. I recorded every single thing I ate, even if I had 5 M & M's (a small bag was definitely out).
I still follow a LRD - instant mashed potatoes, yogurt with live cultures, bananas, Club Crackers, applesauce, turkey, chicken, fish, white bread, plain english muffins. It's just way I have to eat if I want to limit D.
In time it does get better. But I learned the hard way - you are what you eat.
I also fast for certain events (long travel trips, social events such as a wedding or sit down dinner). You cannot do this right now but I would definitely suggest you look into foods that are binding (the LRD list, for example).