Revisit your most accessed directories without the hassle of typing long paths. With c, simply enter a few characters to quickly switch to a recent location. This Windows-specific tool remembers your path history, streamlining your workflow. Experience the convenience of nostalgic directory navigation with modern efficiency.
The cd-nearest command-line tool simplifies navigation between recently accessed directories, offering quick access without needing to remember full paths. Designed for Windows users, this utility allows you to jump to a directory using just a few characters, reminiscent of the classic Norton CD command from MS-DOS.
c su after the first full path entry. The command c can be renamed if desired, ensuring flexibility for your workflow.Initially, specify the full path to your desired directory:
c \MyProjects\FirstProject\Subdirectory
Subsequently, simply type a short form like c su to return directly to your recent destination, saving time and effort.
This project is built on the best practices of directory management and inspired by a nostalgic command-line experience. The original implementation was developed in Python, showcasing the practicality and efficiency of this tool, while contributions for shell scripts across different operating systems are encouraged.
Here's how you can implement the script in Python:
import os
import sys
import csv
def read_directory_list(file_path):
if not os.path.exists(file_path):
with open(file_path, 'w') as f:
pass
return []
with open(file_path, 'r') as f:
reader = csv.reader(f)
return [row[0] for row in reader]
# And much more functionality as outlined in the README...
This snippet demonstrates reading previously visited directories and lays the foundations for keeping your navigation seamless.
Contributors are welcome to extend functionality with shell scripts for other operating systems or improve upon the existing features. Join the development and enhance this handy tool for all command-line enthusiasts!
No comments yet.
Sign in to be the first to comment.