6 ms·
I've reverted back to Vim (not really ST2's fault, just that it doesn't run in a terminal and I've gotten addicted to split-panes in iTerm), but ST2's a solid e
by ConstantineXVI 14y ago
I've reverted back to Vim (not really ST2's fault, just that it doesn't run in a terminal and I've gotten addicted to split-panes in iTerm), but ST2's a solid editor. Definitely worth your $60.
PS: If it got even a basic terminal...
EDIT2: ST2 does have split panes, I just can't run a terminal in them.
- mfer 14y agoFor anyone wondering, ST2 has split panes. Look in menu View -> Layout.
- PopaL 14y agoI suppose you know that you split the layout of ST just like you can split the pane in iTerm2 ... You can even have the same file open twice in a side by side view.
- ConstantineXVI 14y agoRight, but that's only for files. My extra panes tend to have REPLs, curls, docs, etc. more often than other files.
- yuchi 14y agoThat's the reason behind LightTable. I have to say, a Terminal could be a great addition to ST features.
- Joe8Bit 14y agoYou can init Sublime (and open/edit files) from the command line relatively easily[1] and there's a plugin that will allow you run shell commands from within Sublime Text[2]. 1: http://www.sublimetext.com/docs/2/osx_command_line.html http://www.sublimetext.com/docs/2/osx_command_line.html 2: https://github.com/misfo/Shell-Turtlestein https://github.com/misfo/Shell-Turtlestein (or from Package Control) EDIT: Ahh I see you edited, nevermind! But you can split the windows easily too!
- dsirijus 14y agoI've even bought it, then went back to Vim. It looked so promising and I still think it's second best editor around. EDIT: There can be only one!
- swah 14y agoDo you use the external program to emulate Cmd-T? I don't like that solution :) and it doesn't work in Windows IIRC...
- super_mario 14y agoCommand-T vim plugin works on windows too. Yes its a little harder to compile on windows but doable.
- ConstantineXVI 14y agoCtrlP[0] is pure Vimscript, much easier going on Windows [0] https://github.com/kien/ctrlp.vim https://github.com/kien/ctrlp.vim
- GrandTheftR 14y agoI love ST2, Vim, and iTerm. On my Mac. I just setup a global key ⌥-t to bring iTerm to front. Not ideally, but good enough for me for now.
- btown 14y agoA basic terminal is 100% feasible under the plugin API... see http://www.sublimetext.com/docs/2/api_reference.html#sublime.View http://www.sublimetext.com/docs/2/api_reference.html#sublime... ... although to capture keystrokes, you'd need to bind a keystroke to every single key with every single combination of modifiers. EDIT: Some insane person seems to have done this: https://github.com/wuub/SublimePTY https://github.com/wuub/SublimePTY
- enterneo 14y agoif you switch to tmux, then you can have term-agnostic split panes
- mvgoogler 14y agoI'm just curious about why you need to run it in a terminal? I have a linux machine at work and use a MacBook for remote work. When I'm remote I just run Sublime locally on my Mac and set up an sshfs mount to my workstation for the source files. Works like a charm. Note - not at all saying you're doing it wrong :-) just curious if you'd tried this kind of setup and why it didn't work for you?
- ConstantineXVI 14y agoIt's mainly to keep everything (where everything == files, REPL, docs, etc.) in a single window, which I can then throw full-screen and have absolutely nothing but my work in front of me. I'm sure one could use ST2 (or any other GUI app) on Linux with a tiling WM like xmonad and achieve a similar workflow, but there doesn't seem to be a way to achieve this on OSX that doesn't involve ugly/unstable hacks.
- nicholassmith 14y agoYou know, in theory it'd be possible to do that within Sublime but I'm not sure if that's veering towards the emacs approach of ALL THE THINGS. I'd have to try it but I think you can probably use PyQt to grab WebKit and make a package to display HTML docs within Sublime
- notJim 14y agoThe one window your parent is referring is a terminal window, not a vim window.
- ConstantineXVI 14y agoThe "all the things" approach is a large part of what keeps me away from Emacs[1]. I'd much rather use a single-purpose editor (like ST2 or Vim) alongside other similarly-focused tools, or a well-done IDE that's focused on it's environment. Emacs tries too hard to be everything at once (why do I want an editor that's a file manager, IRC client, organizer, and Tetris?). [1] The other is it's absolute refusal to "fit in" on whatever platform it's on. Fits with the kitchen-sink approach: why interop with [program X] when you can just build it in?