My homebrew Ranger selects at level 1 if they get a Companion or a massive boost to Hunter's Mark - "Bond of the Pack" vs "Bond of the Hunt".
Thematically, it is a nature-themed Warlock - you have a bond with a Primal Spirit which provides you with your extraordinary abilities.
To make it work, I had to rejigger the baseline power level of 5e, because "you are competent with martial weapons, and you get extra attack at level 5" actually sucks up 80%+ of a PC's power budget.
My baseline power level has an optimized vhuman Battlemaster XBE SS Fighter as the floor instead of near the ceiling.
1. Rangers are hard-coded to get both the TWF and Archery one.
2. Rangers don't interact with weapon masteries.
3. Ranger level 5 gets a "Bladedancer" style extra attack; they can cast a Ranger spell and make an attack as an action.
4. Rangers get somewhat useful attack cantrips. Improved versions of Shillelagh (make an attack as part of casting, deal bonus damage on that attack), Blade Ward (protect yourself and another nearby ally, no concentration, 1 turn), True Strike (gain advantage and bonus damage on an attack), and a Whirlwind Attack (attack prof bonus distinct targets in 20' radius for [W]+casting stat damage; must move to be able to attack the target, but attacked targets cannot make OAs on you) cantrip.
Rangers can now shoot both a lighting arrow and a normal arrow on their turn, for example. Or use true strike, then attack using the advantage and extra damage.
The Bond of the Hunt gets significantly scaling damage on its HM and it loses its concentration requirement. It also gets utility against them - the Ranger can follow marked foes easily, and gets other defensive/offensive advantages against it at high levels.
The Bond of the Pack gets a companion with (5+5*level) HP (less if it flies) with damage that scales like a cantrip (one die per tier). Giving it an order is a bonus action, but it will defend the Ranger (or a chosen target as a bonus action) or continue to attack whomever they where last ordered to without an order. It gains special abilities (like grapple, larger size so it can be mounted, armored shell, etc) at higher levels, letting you customize it.
I think it produces a class that feels like a Nature Warrior, not a slightly incompetent Fighter with some Druid spells attached.