Skip to content

Commit

Permalink
fzf part 1 done
Browse files Browse the repository at this point in the history
  • Loading branch information
AliMozdian committed Jan 27, 2024
1 parent ab1e75e commit b4dd0f7
Showing 1 changed file with 24 additions and 12 deletions.
36 changes: 24 additions & 12 deletions main.tex
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@

Some of the key commands to do so:
\begin{itemize}
\item ":vsp" \rightarrow splits window vertically (or you can use ":vertical split")
\item ":sp" \rightarrow splits window horizontally (or you can use ":split")
\item "Ctrl + w" \rightarrow navigate between windows (use it followed by arrow keys to do it more efficiently)
\item "Ctrl + w" followed by '$>$' or '$<$'' \rightarrow to increase or decrease window size.
\item ":vsp" $\rightarrow$ splits window vertically (or you can use ":vertical split")
\item ":sp" $\rightarrow$ splits window horizontally (or you can use ":split")
\item "Ctrl + w" $\rightarrow$ navigate between windows (use it followed by arrow keys to do it more efficiently)
\item "Ctrl + w" followed by '$>$' or '$<$'' $\rightarrow$ to increase or decrease window size.
\end{itemize}

\paragraph{Tabs:} Vim also supports the use of tabs, allowing users to work with multiple files within the same Vim session.
Expand All @@ -131,10 +131,10 @@

Some of the key commands to do so:
\begin{itemize}
\item ":tabnew" or ":tabnew <filename>" \rightarrow opens new tab
\item "gt" \rightarrow switch to the next tab
\item "gT" \rightarrow switch to the previous tab
\item ":tabclose" \rightarrow tabclose
\item ":tabnew" or ":tabnew <filename>" $\rightarrow$ opens new tab
\item "gt" $\rightarrow$ switch to the next tab
\item "gT" $\rightarrow$ switch to the previous tab
\item ":tabclose" $\rightarrow$ tabclose
\end{itemize}

\subsubsection{Folding}
Expand All @@ -144,9 +144,9 @@

Some of the key commands to do so:
\begin{itemize}
\item zf followed by a motion \rightarrow create a fold for the text covered by the specified motion.
\item za \rightarrow toggle fold and unfold at the position that cursor points at.
\item zd \rightarrow delete the fold at the cursor without deleting its contents, just the fold itself.
\item zf followed by a motion $\rightarrow$ create a fold for the text covered by the specified motion.
\item za $\rightarrow$ toggle fold and unfold at the position that cursor points at.
\item zd $\rightarrow$ delete the fold at the cursor without deleting its contents, just the fold itself.
\end{itemize}

\subsubsection{Scripting}
Expand Down Expand Up @@ -208,7 +208,19 @@
There are of them (these methodes) but I think it suffices to say how usefull and important is this concept in programming, and it is the answer to why should we give credit to the tools which prevent this.


\subsection{}
\subsection{GNU/Linux Bash Scripting}
\subsubsection{fzf}
\paragraph{What is fuzzy searching?}
Fuzzy searching, as used in tools like fzf, is a technique that allows for approximate matching of search patterns. Instead of requiring an exact match.
Fuzzy searching considers variations in spelling, word order, and character sequences to find relevant results, enhancing search flexibility and efficiency.

\paragraph{What does "ls | fzf" does?}
The pipe character ('|') means that give the output of "ls" as the input of "fzf".
"ls" command lists files and directories in the current directory
and "fzf" uses fuzzy searching, so combinded with eachother,
it provides an interactive way to search and select files and directories from the current directory using fuzzy matching, enhancing navigation within the terminal.




\end{document}

0 comments on commit b4dd0f7

Please sign in to comment.