Hacker Newsnew | comments | ask | jobs | submit | puls's commentslogin

You can control this with the HISTCONTROL and HISTIGNORE environment variables: http://askubuntu.com/questions/15926/how-to-avoid-duplicate-...

reply

judk 3 days ago | link

Thank you for providing something of technical value in this conversation.

reply

puls 84 days ago | link | parent | on: CarWoo is shutting down

I bought a car a couple months ago, and as soon as the sales manager saw a TrueCar page open on my phone, the negotiation ended and I paid the price on the phone. Pretty amazing how easy it was.

-----


The Square Stand actually includes a USB hub to plug the printer, cash drawer, and barcode scanner in via USB. It's much simpler than setting up everything to talk on the network.

-----

dangrossman 336 days ago | link

It's all plug-and-play, there are no drivers, software installs or any other setup. You literally just plug the printer into your switch/router, the cash drawer into the printer, and pair the bluetooth barcode scanner with the iPad. Then they just work. I'm not sure how USB devices would even work with an iPad, or why anyone would want cables running across the checkout counter of their store.

-----

ricardobeat 336 days ago | link

Do printers/drawers/scanners come with an USB interface?

-----

royalpineapple 336 days ago | link

Absolutely, Here is a list of USB hardware compatible with the Square Stand.

https://squareup.com/help/en-us/article/5125-square-stand-su...

-----


"Runs the same tests as Xcode.app."

If this works, it's huge. Mad excited about this.

-----

jsankey 348 days ago | link

Agreed. When first I encountered these differences with xcodebuild I found it incredible that the IDE and command line builds are not based on the same backend (indeed the IDE could just wrap the command line tools if well-designed).

Every project's main build should be scriptable -- for reproducible releases, continuous integration etc. I wonder how Apple internally builds things for release when something this simple doesn't work (maybe they don't use OCUnit?).

-----

LegNeato 348 days ago | link

It works, we use it here at Facebook

-----

gte910h 348 days ago | link

Doc could use some install suggestions.

-----

puls 420 days ago | link | parent | on: Vim After 11 Years

Why do people keep suggesting iTerm2? The built-in terminal app on the Mac does Unicode and 256 colors just fine.

-----

Xion 420 days ago | link

iTerm2 has few other fancy features, like horizontal and vertical splitting or Guake-like top-down terminal [0].

[0] http://ivanvillareal.com/osx/setup-iterm2-to-behave-like-gua...

-----

niggler 420 days ago | link

I've used visor/simbl in leopard and snow leopard for years to get the top-down effect in terminal: http://visor.binaryage.com/

-----

haar 420 days ago | link

Multi-pane input via cmd-shift-i, and saved pane/window configurations through cmd-shift-s and cmd-shift-r also come in handy.

-----

niggler 420 days ago | link

Historical. Terminal has improved greatly since Leopard/SL

-----

glenjamin 420 days ago | link

It's the little things which makes me use iTerm2

- easier to change the default darkblue to be readable on black - can configure double-click on filename behaviour (cmd+alt click in Terminal) - can have auto-copy-to-clipboard on selection

In short, it's more like terminal applications on other OSes I'm familiar with.

-----

kreeger 420 days ago | link

Split panes is pretty much the main reason I need iTerm2. That, combined with system-wide hotkey toggling (which I used to get on Terminal with Visor), and Send Commands to All Sessions mode (cmd-ctrl-i, I think) makes me a happy command liner.

-----

callahad 420 days ago | link

iTerm2 has an absolutely amazing history playback, amongst other nice features.

-----

yankcrime 420 days ago | link

Am I the only one who doesn't like iTerm 2 because it feels slow to use? Example: Open up a file in vim, then scroll up and down quickly. The refresh on iTerm 2 is noticeably sluggish compared to Terminal.app.

-----

baghali 420 days ago | link

I personally enjoy being able to split panes vertically with iTerm2

-----

statico 420 days ago | link

Indeed. iTerm2 has replaced tmux for me for local development.

-----

daxelrod 420 days ago | link

Why not both? http://code.google.com/p/iterm2/wiki/TmuxIntegration

iTerm2 can intelligently communicate with tmux in order to present splits and windows are handled by iTerm2, rather than within the single terminal window.

-----

Groxx 420 days ago | link

The "step back in time" feature is sort of gimmicky, but does mean you can rewind even Curses terminal applications. Rarely actually useful, but it has saved me a huge amount of hassle a few times.

-----

mmahemoff 420 days ago | link

Vim also has history via the undo-branches feature. e.g. ":earlier 15m" to go back 15 minutes.

-----

Nick_C 420 days ago | link

And the Gundo plugin extends that even more with a history graph and preview pane that shows diffs. A must-have plugin for me.

-----

mitchty 420 days ago | link

iterm2 supports mouse input, terminal.app does not.

-----

johncoltrane 420 days ago | link

Using a mouse? In Vim?

-----

jlgreco 420 days ago | link

Absolutely. I use a mouse in vim to resize windows. Much less tedious than doing that with a keyboard.

Good mouse support in a terminal is also nice for elinks, which several of my vim shortcuts trigger (company wide code/wiki searches, or similar).

-----

mitchty 420 days ago | link

Vim sure, more for tmux for me to be honest. Its quicker to resize panes/select things with the mouse at times.

People that take keyboard only to the extreme strike me as adhering to the letter of the law rather than the intent. Whichever works faster for a person is better.

-----

ddon 420 days ago | link

Yes, vim in terminal works really good with a mouse!

-----

rplnt 420 days ago | link

In terminal.

-----

johncoltrane 420 days ago | link

Why for?

-----

ddon 420 days ago | link

Here are few things how I use it:

- scrolling with a mouse wheel

- selecting/resizing a split window

- jumping to a specific place in the code

- making a selection

-----

illamint 420 days ago | link

I think the key is having the option to use the mouse, in addition to normal Vim keyboard shortcuts. If I'm switching back and forth between Vim and a browser, for instance, I have my right hand on the mouse already, and I can scroll with the wheel, select a tmux pane, copy and paste things, etc. very easily. If I didn't have that option, I'd have to switch back to the keyboard. If I have both hands on the keyboard already, I'm probably not going to use the mouse.

-----

johncoltrane 420 days ago | link

All of that can be done much more efficiently without the mouse:

- scrolling with a mouse wheel

    :h scroll.txt
- selecting/resizing a split window

    :h window-resize
    :h window-move-cursor
- jumping to a specific place in the code

    /foo<CR> 
or the myriad of cool things in

    :h motion.txt
- making a selection

    v{motion}

-----

JadeNB 420 days ago | link

> All of that can be done much more efficiently without the mouse:

Surely we don't need to get into this sort of thing here.

If you don't know how to do it without the mouse, then it's more efficient to do it with the mouse. If you don't remember how to do it without the mouse, then it's more efficient to do it with the mouse. If you just like using the mouse better, then ….

Anyway, and perhaps more importantly, it doesn't hurt any of us if anyone else values ease of use (even if it's illusory or temporary!) over efficiency.

-----

johncoltrane 420 days ago | link

It doesn't hurt these "anyone" to be pointed at better ways to do what they do.

-----

moe 420 days ago | link

There is no "better", young padawan.

-----

johncoltrane 420 days ago | link

Yes, there is. "Best" is a harder subject to tackle, but there's always "better".

di{ is obviously both quicker and more precise than reaching to the mouse, pointing at the beginning of the code block, extending the selection until the end of the code block and hitting backspace.

One may think these keybindings are awkward or hard to remember (I did, at first, they are not) but they are both faster, more efficient and more deterministic by nature. But I may be a control freak. :-)

-----

krichman 420 days ago | link

It's a subjective experience. I, too, prefer to use the keyboard as much as possible but I've also encountered doofuses that mock that position because the mouse is "so convenient" and "there's no way it's faster to use the keyboard entirely". So I guess their better is different from my better.

-----

moe 420 days ago | link

Good luck beaming your vim registers from a remote vim into the local clipboard.

-----

aerique 419 days ago | link

That's why I prefer to use my local Vim (Emacs with evil-mode) and its remote editing features (Tramp).

-----

jlgreco 420 days ago | link

I agree on most points, but there is no way that wacking Ctrl-W +/-/>/< is more pleasant than just moving either your index finger or your thumb a half an inch to use a trackpoint or trackpad and instantly get the window proportions you want.

You can of course make nicer mappings, but even then it isn't as nice.

-----

johncoltrane 420 days ago | link

All these commands take a count:

    10<C-w>
But I tend to keep windows at equal width anyway.

-----

jlgreco 420 days ago | link

I don't count columns, I resize to taste.

I also resize often, particularly when using vimdiff, because I often use smaller screens (either because I am watching other things in tmux panes at the same time, or because I am working on my eeepc).

-----

coldtea 420 days ago | link

>All of that can be done much more efficiently without the mouse

No. All this can be made with an extra cognitive overload provided by the use of keyboard shortcuts that makes you think you're doing something useful and/or faster than with the mouse.

Especially if you don't need to have your hand at the keyboard at all times (i.e you're just browsing code and not writing), scrolling with the mouse is way faster.

-----

johncoltrane 420 days ago | link

Keyboard shortcuts give me precision and efficiency, not speed, and that cognitive overload you talk about is a small price to pay.

-----

mmorett 420 days ago | link

For you. But you don't get to make that decision for everyone else. Stop trying to impose your value system on others. It's clear you don't like using a mouse. Then don't. Keep using a 1970s keyboard if it suits you. Bon a petite.

-----

johncoltrane 419 days ago | link

Yes, openly criticizing someone's opinion (or in this case, simply stating another opinion) on a public forum is exactly the same as trying to impose my value system on that person.

By the way, you totally missed the "me" in

> Keyboard shortcuts give me precision and efficiency, not speed, and that cognitive overload you talk about is a small price to pay.

which quite clearly means that this is a subjective matter.

Thanks for helping policing the internet: we clearly don't need to debate about anything.

-----

tomsthumb 420 days ago | link

bam

  "narrower window
  map - <C-W><
  "wider window
  map + <C-W>>
  "shorter window
  map _ <C-W>-
  "taller window
  map = <C-W>+

-----

danneu 420 days ago | link

You seem to be conflating Vim and Terminal.

Vim is just one of the many things you can run in a terminal, and just one of the many things you can do with a terminal.

-----

johncoltrane 420 days ago | link

No. I know what the difference is between the two.

And I know that I never use mouse in one or the other. I don't use it for scrolling, I don't use it for pointing and clicking, I don't use for selecting stuff…

REPL? no use for the mouse. htop? no use for the mouse. git/svn/hg? no use for the mouse.

-----

rplnt 420 days ago | link

How do you select text then? I'm sure there are ways, but they are certainly not intuitive and I've never bothered to look them up since I don't do this task as often.

-----

johncoltrane 419 days ago | link

Do you mean "select text from whatever is displayed in the terminal" or "select text in Vim"?

I never select or copy anything from the terminal: pbcopy on the Mac OS X and xclip on Linux are what I use to get stuff from the shell into the system clipboard.

I don't think that's what you ask, but in Vim, visual selection is done by hitting v (character-wise), V (line-wise) and Ctrl-v (block-wise) followed by a motion or a text-object: va{, vit and so on.

-----

rplnt 419 days ago | link

Yes, I asked about terminal (this whole subthread was about mouse use in terminal). Thanks.

-----

aerolite 420 days ago | link

iterm2 does not let me go forward/backward by word (with the option key). anyone know how to fix this?

-----

aerique 419 days ago | link

This can be fixed by editing the keybindings for your shell. Bash by default on OS X? If so Google for ".inputrc", mine looks like this:

  # See http://www.reddit.com/r/commandline/comments/kbeoe/you_can_make_readline_and_bash_much_more_user/
  "\eOd": backward-word
  "\e[5D": backward-word  # for OS X
  "\eOc": forward-word
  "\e[5C": forward-word   # for OS X
  "\C-f": reverse-search-history
  "\C-F": reverse-search-history  # for OS X
  #Control-F: reverse-search-history
  #Control-j: menu-complete
  #Control-k: menu-complete-backward
  set bell-style none
  set completion-ignore-case on
  set completion-prefix-display-length 2
  set show-all-if-ambiguous on
  set show-all-if-unmodified on

-----

s00pcan 420 days ago | link

I might as well answer seeing as I found this out yesterday. Go to the profile options then the keys tab. Then there is an option for left/right option key acting as normal meta or +esc. While meta sounds correct for this, esc+ was recommended and works.

-----

mpu 420 days ago | link

Yep, and xterm is also aware of them...

-----


The implementation already exists in iOS 5, you just need to make the compiler happy; a header that declares them is sufficient.

-----


Upvoted for the hidden Wacky Waving Inflatable Arm-Flailing Tubeman link.

-----


I would have gone guru, ninja, rockstar and put them in increasing order of annoying, but that's just me.

-----


Along these lines, it makes me wonder how long it will be until we see the rise of free agency in the tech sector.

-----


Call me cynical, but having all of this disclosure up front leaves me trusting her objectivity a lot more than the seemingly obvious alternative where unknown back room deals leave you wondering.

-----

uptown 820 days ago | link

I don't think cynical is the right word for what you're trying to say.

-----

More

Lists | RSS | Bookmarklet | Guidelines | FAQ | DMCA | News News | Feature Requests | Bugs | Y Combinator | Apply | Library

Search: