Re: [Haskell-cafe] [ANN] Cumino 0.2 - Now supports pretty indentation through stylish-haskell
Ok, I've added the support for urxvt. Bear in mind that it partially support urxvt, though: it works fine if you run GVim or Vim outside an already running tmux session, otherwise it won't start. The problem is due to the fact urxvt believes that the new session is launched within the running tmux session, whining about nested tmux session and not starting at all. You can unset the $TERM variable as workaround, but I don't like that apporach. If you come up with an alternative solution please let me know :) A. On 13 September 2012 16:16, Alfredo Di Napoli alfredo.dinap...@gmail.comwrote: If I remember correctly, I've also tried that combinations, without success. Anyway, I'm not at work so I can't test Cumino against gnome and Xmonad until tomorrow morning: I'll keep you posted! Bye, Alfredo I think you misunderstood; as I read it (and as I would expect it to work given the above descrtiption) that would be urxvt --hold -e sh -c 'echo a' -- brandon s allbery allber...@gmail.com wandering unix systems administrator (available) (412) 475-9364vm/sms ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] [ANN] Cumino 0.2 - Now supports pretty indentation through stylish-haskell
Sorry the typo, the variable is $TMUX and controls the nesting ot tmux session. It turns out that if affect not only urxvt but also xterm and gnome-terminal. Perhaps it could be useful to unset it programmatically, I'll keep you posted if I find a workaround. A. On 14 September 2012 06:14, Alfredo Di Napoli alfredo.dinap...@gmail.comwrote: Ok, I've added the support for urxvt. Bear in mind that it partially support urxvt, though: it works fine if you run GVim or Vim outside an already running tmux session, otherwise it won't start. The problem is due to the fact urxvt believes that the new session is launched within the running tmux session, whining about nested tmux session and not starting at all. You can unset the $TERM variable as workaround, but I don't like that apporach. If you come up with an alternative solution please let me know :) A. On 13 September 2012 16:16, Alfredo Di Napoli alfredo.dinap...@gmail.comwrote: If I remember correctly, I've also tried that combinations, without success. Anyway, I'm not at work so I can't test Cumino against gnome and Xmonad until tomorrow morning: I'll keep you posted! Bye, Alfredo I think you misunderstood; as I read it (and as I would expect it to work given the above descrtiption) that would be urxvt --hold -e sh -c 'echo a' -- brandon s allbery allber...@gmail.com wandering unix systems administrator (available) (412) 475-9364vm/sms ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] [ANN] Cumino 0.2 - Now supports pretty indentation through stylish-haskell
You're welcome :) Using Cumino your workflow should be faster and leaner. I encourage to try it out and let me have feedback! Cheers, A. On 12 September 2012 21:43, Roman Cheplyaka r...@ro-che.info wrote: Ah, okay. I was just confused by the fact that it uses tmux, and thought that I was misusing it. Yes, I also usually keep ghci in a separate window (and I am an xmonad user, too). I just thought that this offers a different experience and wanted to try it out. Anyway, thanks for clarifying. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] [ANN] Cumino 0.2 - Now supports pretty indentation through stylish-haskell
Nice bridge between vim and tmux! Thanks! Would you mind add supporting for `urxvtc'? urxvtc's -e option is followed by a list of options instead of a string. urxvtc -e sh -c 'echo a' xterm -e echo a I would like to, and in fact I've already tried, but urxvt is trickier than other shells. Using the command you gave me does not create a new window, tested both on XMonad and Gnome. This is the error you can see using the option -hold, this way: urxvt --hold -e echo a This opens a new window with the error: *urxvt: Unable to exec child. * Any idea? ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] [ANN] Cumino 0.2 - Now supports pretty indentation through stylish-haskell
On Thu, Sep 13, 2012 at 2:22 AM, Alfredo Di Napoli alfredo.dinap...@gmail.com wrote: urxvtc -e sh -c 'echo a' xterm -e echo a I would like to, and in fact I've already tried, but urxvt is trickier than other shells. Using the command you gave me does not create a new window, tested both on XMonad and Gnome. This is the error you can see using the option -hold, this way: urxvt --hold -e echo a This opens a new window with the error: *urxvt: Unable to exec child. * I think you misunderstood; as I read it (and as I would expect it to work given the above descrtiption) that would be urxvt --hold -e sh -c 'echo a' -- brandon s allbery allber...@gmail.com wandering unix systems administrator (available) (412) 475-9364 vm/sms ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] [ANN] Cumino 0.2 - Now supports pretty indentation through stylish-haskell
If I remember correctly, I've also tried that combinations, without success. Anyway, I'm not at work so I can't test Cumino against gnome and Xmonad until tomorrow morning: I'll keep you posted! Bye, Alfredo I think you misunderstood; as I read it (and as I would expect it to work given the above descrtiption) that would be urxvt --hold -e sh -c 'echo a' -- brandon s allbery allber...@gmail.com wandering unix systems administrator (available) (412) 475-9364 vm/sms ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] [ANN] Cumino 0.2 - Now supports pretty indentation through stylish-haskell
Hi everyone, in case you have missed it, I've released a Vim plugin called Cumino: http://adinapoli.github.com/cumino/ It does one simple thing: It allows communication between Vim and tmux, in particular to a ghci session. With Cumino you can fire-up Vim, load a ghci session and interact with it with only few keystrokes. The plugin also supports visual selection: you can select for example a function (even with all its signature!) and you can send it to ghci. The visual selection supports imports, custom types and typeclasses. It's a simple idea but so damn useful, imho. This release also adds the possibility to prettify the code using the excellent stylish-haskell: select a snippet, simply indent in the usual way ( = ) and voilà, now your code is indented! Feedback are highly appreciated, as well as contributions. There are still some issues with some terminals (for example urxvt does not work right now) but the plugin has been tested against gnome-terminal, xterm and mlterm. I'll post in reddit too for completeness! Bye! Alfredo ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] [ANN] Cumino 0.2 - Now supports pretty indentation through stylish-haskell
Are urxvt-related issues documented somewhere? On 09/12/2012 05:03 PM, Alfredo Di Napoli wrote: There are still some issues with some terminals (for example urxvt does not work right now) ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] [ANN] Cumino 0.2 - Now supports pretty indentation through stylish-haskell
So, suppose that I'm in a terminal vim session, and I want to start ghci (in the current terminal). What do I do? localleadercc starts a new terminal, which is not what I want. On Wed, Sep 12, 2012 at 3:03 PM, Alfredo Di Napoli alfredo.dinap...@gmail.com wrote: Hi everyone, in case you have missed it, I've released a Vim plugin called Cumino: http://adinapoli.github.com/cumino/ It does one simple thing: It allows communication between Vim and tmux, in particular to a ghci session. With Cumino you can fire-up Vim, load a ghci session and interact with it with only few keystrokes. The plugin also supports visual selection: you can select for example a function (even with all its signature!) and you can send it to ghci. The visual selection supports imports, custom types and typeclasses. It's a simple idea but so damn useful, imho. This release also adds the possibility to prettify the code using the excellent stylish-haskell: select a snippet, simply indent in the usual way ( = ) and voilà, now your code is indented! Feedback are highly appreciated, as well as contributions. There are still some issues with some terminals (for example urxvt does not work right now) but the plugin has been tested against gnome-terminal, xterm and mlterm. I'll post in reddit too for completeness! Bye! Alfredo ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] [ANN] Cumino 0.2 - Now supports pretty indentation through stylish-haskell
Hi, I'm not in front of the pc now, but afair the problem was related to opening a new urxvt window FROM a running urxvt. More details soon :) Sent from my iPad On 12/set/2012, at 15:18, Matvey Aksenov matvey.akse...@gmail.com wrote: Are urxvt-related issues documented somewhere? On 09/12/2012 05:03 PM, Alfredo Di Napoli wrote: There are still some issues with some terminals (for example urxvt does not work right now) ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] [ANN] Cumino 0.2 - Now supports pretty indentation through stylish-haskell
Could you please tell me what your desired behaviour would be? In praticular, do you want a ghci session in another tab or in a tmux pane perhaps? Otherwise I can't see any viable way to let vim and ghci cooperate inside the SAME window. Bye, Alfredo Sent from my iPad On 12/set/2012, at 17:05, Roman Cheplyaka r...@ro-che.info wrote: So, suppose that I'm in a terminal vim session, and I want to start ghci (in the current terminal). What do I do? localleadercc starts a new terminal, which is not what I want. On Wed, Sep 12, 2012 at 3:03 PM, Alfredo Di Napoli alfredo.dinap...@gmail.com wrote: Hi everyone, in case you have missed it, I've released a Vim plugin called Cumino: http://adinapoli.github.com/cumino/ It does one simple thing: It allows communication between Vim and tmux, in particular to a ghci session. With Cumino you can fire-up Vim, load a ghci session and interact with it with only few keystrokes. The plugin also supports visual selection: you can select for example a function (even with all its signature!) and you can send it to ghci. The visual selection supports imports, custom types and typeclasses. It's a simple idea but so damn useful, imho. This release also adds the possibility to prettify the code using the excellent stylish-haskell: select a snippet, simply indent in the usual way ( = ) and voilà, now your code is indented! Feedback are highly appreciated, as well as contributions. There are still some issues with some terminals (for example urxvt does not work right now) but the plugin has been tested against gnome-terminal, xterm and mlterm. I'll post in reddit too for completeness! Bye! Alfredo ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] [ANN] Cumino 0.2 - Now supports pretty indentation through stylish-haskell
On Wed, Sep 12, 2012 at 11:25 AM, Alfredo Di Napoli alfredo.dinap...@gmail.com wrote: I'm not in front of the pc now, but afair the problem was related to opening a new urxvt window FROM a running urxvt. More details soon :) urxvt defaults to using a client-server model for all terminals, IIRC (we have a warning about it in the xmonad documentation as well since it messes up ManageHooks). There's possibly some option to disable this and force an independent terminal. -- brandon s allbery allber...@gmail.com wandering unix systems administrator (available) (412) 475-9364 vm/sms ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] [ANN] Cumino 0.2 - Now supports pretty indentation through stylish-haskell
If such a possibility exists, I would be happy to fix the urxvt support :) Bear in mind, though, that the Cumino terminal is only needed for the Ghci session, so you can use your favourite terminal to run Vim :) A. urxvt defaults to using a client-server model for all terminals, IIRC (we have a warning about it in the xmonad documentation as well since it messes up ManageHooks). There's possibly some option to disable this and force an independent terminal. -- brandon s allbery allber...@gmail.com wandering unix systems administrator (available) (412) 475-9364 vm/sms ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] [ANN] Cumino 0.2 - Now supports pretty indentation through stylish-haskell
On Wed, Sep 12, 2012 at 1:36 PM, Alfredo Di Napoli alfredo.dinap...@gmail.com wrote: If such a possibility exists, I would be happy to fix the urxvt support :) Actually I went back through it and it should only be an issue if urxvtc is used; urxvt should always be standalone. Unless they went and made it too smart for its own good, in which case there might be some option to make it behave the old way. See http://www.haskell.org/haskellwiki/Xmonad/General_xmonad.hs_config_tips#Terminal_emulator_factoriesfor details. (I am assuming the problem is urxvt recognizes itself and uses the terminal factory to rub off a new window in the same process, which can't be given separate configuration information and can't be communicated with via xterm-style raw pty mode etc.) -- brandon s allbery allber...@gmail.com wandering unix systems administrator (available) (412) 475-9364 vm/sms ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] [ANN] Cumino 0.2 - Now supports pretty indentation through stylish-haskell
Ah, okay. I was just confused by the fact that it uses tmux, and thought that I was misusing it. Yes, I also usually keep ghci in a separate window (and I am an xmonad user, too). I just thought that this offers a different experience and wanted to try it out. Anyway, thanks for clarifying. On Wed, Sep 12, 2012 at 5:24 PM, Alfredo Di Napoli alfredo.dinap...@gmail.com wrote: Hi Roman, Cumino was thought to operate in another terminal. Personally, but this is only a personal taste, having to switch between terminal tabs or tmux panes is not the fastest workflow. Being an Xmonad user, i can easily swap between terminals (read ghci and vim) simply with mod + j or mod + k. So the answer to your answer is: You can't, Cumino will always start in another terminal window. Is the same behaviour of Slime, though. Sent from my iPad On 12/set/2012, at 17:06, Roman Cheplyaka r...@ro-che.info wrote: So, suppose that I'm in a terminal vim session, and I want to start ghci (in the current terminal). What do I do? localleadercc starts a new terminal, which is not what I want. On Wed, Sep 12, 2012 at 3:03 PM, Alfredo Di Napoli alfredo.dinap...@gmail.com wrote: Hi everyone, in case you have missed it, I've released a Vim plugin called Cumino: http://adinapoli.github.com/cumino/ It does one simple thing: It allows communication between Vim and tmux, in particular to a ghci session. With Cumino you can fire-up Vim, load a ghci session and interact with it with only few keystrokes. The plugin also supports visual selection: you can select for example a function (even with all its signature!) and you can send it to ghci. The visual selection supports imports, custom types and typeclasses. It's a simple idea but so damn useful, imho. This release also adds the possibility to prettify the code using the excellent stylish-haskell: select a snippet, simply indent in the usual way ( = ) and voilà, now your code is indented! Feedback are highly appreciated, as well as contributions. There are still some issues with some terminals (for example urxvt does not work right now) but the plugin has been tested against gnome-terminal, xterm and mlterm. I'll post in reddit too for completeness! Bye! Alfredo ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] [ANN] Cumino 0.2 - Now supports pretty indentation through stylish-haskell
On Wed, Sep 12, 2012 at 01:03:49PM +, Alfredo Di Napoli wrote: Hi everyone, in case you have missed it, I've released a Vim plugin called Cumino: http://adinapoli.github.com/cumino/ It does one simple thing: It allows communication between Vim and tmux, in particular to a ghci session. With Cumino you can fire-up Vim, load a ghci session and interact with it with only few keystrokes. The plugin also supports visual selection: you can select for example a function (even with all its signature!) and you can send it to ghci. The visual selection supports imports, custom types and typeclasses. It's a simple idea but so damn useful, imho. This release also adds the possibility to prettify the code using the excellent stylish-haskell: select a snippet, simply indent in the usual way ( = ) and voilà, now your code is indented! Feedback are highly appreciated, as well as contributions. There are still some issues with some terminals (for example urxvt does not work right now) but the plugin has been tested against gnome-terminal, xterm and mlterm. I'll post in reddit too for completeness! Nice bridge between vim and tmux! Would you mind add supporting for `urxvtc'? urxvtc's -e option is followed by a list of options instead of a string. urxvtc -e sh -c 'echo a' xterm -e echo a ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe