HNHacker News
TopNewBestAskShowJobs

apjana

661 karma · joined August 22, 2015

submissionscomments
apjana··on Show HN: Nnn – unorthodox terminal file manager
nnn has an in-built batch-renamer as well as a more powerful POSIX-compliant plugin to do that.

List of features: https://github.com/jarun/nnn#features

apjana··on Show HN: Nnn – unorthodox terminal file manager
The problem with emacs-based solutions is the speed.
apjana··on Show HN: Nnn – unorthodox terminal file manager
n³ The unorthodox terminal file manager. ;)
apjana··on Show HN: Nnn – unorthodox terminal file manager
Please read the first sentence in the project readme.
apjana··on Show HN: Nnn – unorthodox terminal file manager
Check out the config var `NNN_OPENER` and program option `-e`.
apjana··on Show HN: Nnn – unorthodox terminal file manager
Yes, cd, ls, mv, cp etc. don't help much in unknown territory.
apjana··on Show HN: Nnn – unorthodox terminal file manager
I found switching to fd challenging. fd makes some of the options easy. But find and fd are not syntactically the same. I guess I didn't spend enough time with it.
apjana··on Show HN: Nnn – unorthodox terminal file manager
OK, then let me tell you a story - if you see the `^` and `v` in the latest release, someone requested for those and I personally found them useful and added those on first request. A week later, someone else asked for a program option to disable those.

If you think maintaining a piece of software like nnn is easy, it's not. You can't make everyone happy.

apjana··on Show HN: Nnn – unorthodox terminal file manager
That's correct, we don't tend to add dispensable features without multiple users asking for it. Of course, features you demand would mean the world to you, but from where I stand, a feature bloat is the last thing in my mind. And the funny thing is, some users find it reasonable.
apjana··on Show HN: Nnn – unorthodox terminal file manager
Yes, that's the stand from the beginning and there are good reasons behind that. If you read the issue thread, we did spend a good amount of time discussing those keybinds and most users find them reasonable. Speaking of compiling, the only mandatory library dependency is ncurses and the users don't consider it a significant problem. For example, Arch Linux users install most software from source using formulas and so do Homebrew users. So the tools to build are already present on the system.

nnn also has an option to make the process simpler. Additional details - https://github.com/jarun/nnn/wiki/Advanced-use-cases#custom-...

apjana··on Show HN: Nnn – unorthodox terminal file manager
> With ranger, I can even use it as an alternative to cd

cd on quit works in nnn as well... and many other file managers.

apjana··on Show HN: Nnn – unorthodox terminal file manager
There are so many of them! GitHub, for example. ;)
apjana··on Show HN: Nnn – unorthodox terminal file manager
I answered to a similar question in the same thread (in response to the comment you replied to). Please take a look if that clarifies.
apjana··on Show HN: Nnn – unorthodox terminal file manager
You are looking for the benchmarks: https://github.com/jarun/nnn/pull/84
apjana··on Show HN: Nnn – unorthodox terminal file manager
Bookmarks you mean. Yes, in nnn you can jump to the bookmark from anywhere and then press `Alt-O` (my preferred key) to start the search.

But you know what, let me share a smarter workflow:

  find . -iname "*.mp3" -print0 | nnn -p -
Now you list all yours mp3 files in nnn, examine/play them and finally get to cherry-pick some and print them to stdout when you quit nnn.

BTW, you can also run the find within nnn and list in nnn.

apjana··on Show HN: Nnn – unorthodox terminal file manager
> They can be handy if you're in the middle of something else, and you need one without distraction.

Add a drop-down temrminal file manager to the mix, so you never lose your context. ;)

apjana··on Show HN: Nnn – unorthodox terminal file manager
You'll enjoy it for sure!
apjana··on Show HN: Nnn – unorthodox terminal file manager
If your scripts do all of the following, you are already using a file manager:

https://github.com/jarun/nnn#features

apjana··on Show HN: Nnn – unorthodox terminal file manager
Try to think of it as an endless ls-cd loop with tons of automated functionality few keypresses away. Also, please try the type-to-nav mode in nnn.

Also, find/fzf etc. are useful as long as you are not on a slow disk and a mid-range Android device/the Pi. If you are saying you are OK with scanning the whole filesystem every time you are looking for something that can be anywhere under /, I simply don't prefer that.

apjana··on Show HN: Nnn – unorthodox terminal file manager
Thank you for the appreciation! The full feature list is not hidden, it's below because it got way too long (who would have thought?). The toggled one is a quick peek into some of the cool things users can do with nnn.
apjana··on Advcpmv – A patch for GNU Core Utilities cp, mv to add progress bars
Headline says it all. Shared for greater good and convenience. Other solutions like reading from proc and showing progress etc. unfortunately are too indirect.

The project will be maintained. It's really convenient and used in one of the popular terminal file managers, nnn.

The progress bars work just great. Sometimes before starting a cp/mv the numbers show in negative which should be a variable initialization issue. Patches are welcome to fix it and any other minor glitches you may find. Couldn't find the time to get around to these.

Note: BSD and macOS users can press ^T to check the progress.

apjana··on Show HN: Buku – browser-independent private portable bookmark manager
From those who haven't come across it, buku is a powerful bookmark manager written in Python3 and SQLite3. When I started writing it, I couldn't find a flexible command-line solution with a private, portable, merge-able database along with seamless GUI integration.

bukuserver exposes a browsable front-end on a local web host server.

buku can auto-import bookmarks from your browser(s) or fetch the title and description of a bookmarked url from the web. You can use your favourite editor to compose and update bookmarks. With multiple search options, including regex and a deep scan mode (particularly for URLs), it can find any bookmark instantly. buku can look up the latest snapshot of a broken link on the Wayback Machine. There's an Easter egg to revisit random forgotten bookmarks too! Buku doesn't track you; no hidden history, obsolete records, usage analytics or homing.

apjana··on Ranger: A console file manager with VI key bindings
It's here - https://github.com/jarun/nnn/wiki/Usage#configuration

If that's not enough, can you be more specific?

apjana··on Terminal file manager nnn brings previews, find and list, persistent session
This release has one of the most wanted features so far - preview hovered. The relevant wiki page has the details on the implementation and usage.

Find & list would let you search in your favourite subtree search utility (find/fd/grep/ripgrep/fzf) from `nnn` and list the results in `nnn` for working with them.

Persistent sessions ensure you always start where you quit `nnn`.

Plugins went through lots of improvements. Plugins which communicate back to `nnn` have a specification now (and it can be easily extended).

Lots of usability improvements and some good fixes.

Hope you enjoy `nnn` as much as we enjoy developing it!

apjana··on Show HN: Terminal Multiplexer Inspired by I3
In my experiments for a good multiplexer to go with nnn https://github.com/jarun/nnn, I have tried dvtm and tmux. dvtm is extremely light but it appears there's no way to open a new command in a new pane from within a session. This is where tmux trumped.

So if I want to open 2 panes, I run

  dvtm n n # n is aliased to nnn + some program options
But if I want to open text/image files detached in a new pane, my custom opener calls:

  tmux split-window -h "vim \"$*\""
Can 3mux do both for me?

  - present a lightweight multiplexer
  - support options to open split windows and run a command
Note: This is not necessarily i3-specific, please consider cross-DE/WM scenarios.
apjana··on SIMD instructions
Sure thing! Thanks a lot!
apjana··on SIMD instructions
Also, here's the source from musl (somewhat similar to what we have)

https://github.com/ifduyue/musl/blob/79f653c6bc2881dd6855299...

apjana··on SIMD instructions
> send a patch with rationale for you to decide whether you wanted it or not

I would really appreciate that. And I do understand your intention is good.

The problem I see with geeky forums is there are just too many people trying to force their ideas on you at every step and expect you to implement those. So it's kind of a standard reply from my side.

apjana··on SIMD instructions
> glibc, for example

> The standard library's function will be vectorized regardless of how your compiler was feeling that day

We talked glibc. I mentioned there are libraries which do not do _any_ optimization other than a byte by byte copy.

> I'm still not seeing why you can't replace the code between lines 881 and 902

Because you are considering only glibc.

And yes, we can do a lot of things. But the function and copying buffers are not the top priority for us ATM. I shared it as an example in the context of the current topic. Not all code is supposed to match your preferences.

> char * to a ulong *

Both the source and destination are guarded by length and alignment requirement checks.

apjana··on SIMD instructions
> Why not call strncpy

Read the excerpt.

> undefined

Nothing's _undefined_ there.

← PreviousPage 2 of 10Next →